summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAndrew Trick <atrick@apple.com>2013-06-21 18:33:09 +0000
committerAndrew Trick <atrick@apple.com>2013-06-21 18:33:09 +0000
commit0db6df0d963a8eee763fd878a72c3153501491c0 (patch)
treec140d63c17018c204089f233601c1726f28f1d44 /lib
parentb5f906b98fe5c05c491c6cf2ec30fcf206b60b27 (diff)
downloadllvm-0db6df0d963a8eee763fd878a72c3153501491c0.tar.gz
llvm-0db6df0d963a8eee763fd878a72c3153501491c0.tar.bz2
llvm-0db6df0d963a8eee763fd878a72c3153501491c0.tar.xz
Modify the -join-globalcopies option (off by default).
Always coalesce in forward order to propagate rematerialization. I'm fixing this option so I can enable it by default soon. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@184568 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/CodeGen/RegisterCoalescer.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/CodeGen/RegisterCoalescer.cpp b/lib/CodeGen/RegisterCoalescer.cpp
index 3cede9f490..6e7d90dd65 100644
--- a/lib/CodeGen/RegisterCoalescer.cpp
+++ b/lib/CodeGen/RegisterCoalescer.cpp
@@ -2117,8 +2117,8 @@ RegisterCoalescer::copyCoalesceInMBB(MachineBasicBlock *MBB) {
// are not inherently easier to resolve, but slightly preferable until we
// have local live range splitting. In particular this is required by
// cmp+jmp macro fusion.
- for (MachineBasicBlock::reverse_iterator
- MII = MBB->rbegin(), E = MBB->rend(); MII != E; ++MII) {
+ for (MachineBasicBlock::iterator MII = MBB->begin(), E = MBB->end();
+ MII != E; ++MII) {
if (!MII->isCopyLike())
continue;
if (isLocalCopy(&(*MII), LIS))