[Bug target/86263] [9 Regression] [nvptx] casesi, tablejump
marxin at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Thu Jun 21 11:32:00 GMT 2018
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86263
Martin Liška <marxin at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Priority|P3 |P1
Status|UNCONFIRMED |ASSIGNED
Last reconfirmed| |2018-06-21
Assignee|unassigned at gcc dot gnu.org |marxin at gcc dot gnu.org
Summary|[nvptx] casesi, tablejump |[9 Regression] [nvptx]
| |casesi, tablejump
Ever confirmed|0 |1
--- Comment #1 from Martin Liška <marxin at gcc dot gnu.org> ---
Mine, I wrongly ported following function:
https://github.com/gcc-mirror/gcc/blob/44511ab2471c1f88b755a5b0998fc47a8653d8c2/gcc/tree-switch-conversion.c#L1297
static bool
expand_switch_as_decision_tree_p (tree range,
unsigned int uniq ATTRIBUTE_UNUSED,
unsigned int count)
{
int max_ratio;
/* If neither casesi or tablejump is available, or flag_jump_tables
over-ruled us, we really have no choice. */
if (!targetm.have_casesi () && !targetm.have_tablejump ())
return true;
if (!flag_jump_tables)
return true;
#ifndef ASM_OUTPUT_ADDR_DIFF_ELT
if (flag_pic)
return true;
#endif
...
More information about the Gcc-bugs
mailing list