diff options
author | Wei Mi <wmi@google.com> | 2013-11-04 21:45:05 +0000 |
---|---|---|
committer | Wei Mi <wmi@gcc.gnu.org> | 2013-11-04 21:45:05 +0000 |
commit | a22449bd7ddb0b63d0bc5af14a4a9ae272eb8fd8 (patch) | |
tree | f54f2a607e3215d37070108ae88eeaed39ffb738 /gcc | |
parent | 0dc41f28bd2aa4f762b89476fe4885f9c67c16c5 (diff) | |
download | gcc-a22449bd7ddb0b63d0bc5af14a4a9ae272eb8fd8.zip gcc-a22449bd7ddb0b63d0bc5af14a4a9ae272eb8fd8.tar.gz gcc-a22449bd7ddb0b63d0bc5af14a4a9ae272eb8fd8.tar.bz2 |
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>
* sched-rgn.c (add_branch_dependences): Keep insns in
a SCHED_GROUP at the end of BB to remain their location.
From-SVN: r204371
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/sched-rgn.c | 5 |
2 files changed, 9 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 895da5a..4d08af4 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,10 @@ 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. diff --git a/gcc/sched-rgn.c b/gcc/sched-rgn.c index bf9b10d..73a236b 100644 --- a/gcc/sched-rgn.c +++ b/gcc/sched-rgn.c @@ -2443,6 +2443,8 @@ add_branch_dependences (rtx head, rtx tail) 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 @@ -2465,7 +2467,8 @@ add_branch_dependences (rtx head, rtx tail) #endif || (!reload_completed && sets_likely_spilled (PATTERN (insn))))) - || NOTE_P (insn)) + || NOTE_P (insn) + || (last != 0 && SCHED_GROUP_P (last))) { if (!NOTE_P (insn)) { |