Short branches cannot be used to jump between hot/cold
sections. Update the hook.
gcc/
2017-04-26 Claudiu Zissulescu <claziss@synopsys.com>
* config/arc/arc.c (arc_can_follow_jump): Check for short
branches.
From-SVN: r251566
2017-08-31 Claudiu Zissulescu <claziss@synopsys.com>
+ * config/arc/arc.c (arc_can_follow_jump): Check for short
+ branches.
+
+2017-08-31 Claudiu Zissulescu <claziss@synopsys.com>
+
* config.gcc: Use g.opt for arc.
* config/arc/arc.c (LEGITIMATE_SCALED_ADDRESS_P): Deleted,
functionality moved to ...
if (CROSSING_JUMP_P (followee))
switch (get_attr_type (u.r))
{
+ case TYPE_BRANCH:
+ if (get_attr_length (u.r) != 2)
+ break;
case TYPE_BRCC:
case TYPE_BRCC_NO_DELAY_SLOT:
return false;