* sched-rgn.c (add_branch_dependences): Keep insns in
a SCHED_GROUP at the end of BB to remain their location.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@204371
138bc75d-0d04-0410-961f-
82ee72b054a4
2013-11-04 Wei Mi <wmi@google.com>
+ * sched-rgn.c (add_branch_dependences): Keep insns in
+ a SCHED_GROUP at the end of BB to remain their location.
+
+2013-11-04 Wei Mi <wmi@google.com>
+
* gcc/config/i386/i386.c (memory_address_length): Extract a part
of code to rip_relative_addr_p.
(rip_relative_addr_p): New Function.
cc0 setters remain at the end because they can't be moved away from
their cc0 user.
+ Predecessors of SCHED_GROUP_P instructions at the end remain at the end.
+
COND_EXEC insns cannot be moved past a branch (see e.g. PR17808).
Insns setting TARGET_CLASS_LIKELY_SPILLED_P registers (usually return
#endif
|| (!reload_completed
&& sets_likely_spilled (PATTERN (insn)))))
- || NOTE_P (insn))
+ || NOTE_P (insn)
+ || (last != 0 && SCHED_GROUP_P (last)))
{
if (!NOTE_P (insn))
{