diff options
| author | Andrew Trick <atrick@apple.com> | 2013-06-21 18:33:09 +0000 |
|---|---|---|
| committer | Andrew Trick <atrick@apple.com> | 2013-06-21 18:33:09 +0000 |
| commit | 75961ecc1a5b0dff6303df886ea9817248b78931 (patch) | |
| tree | 15d4a88ff164a348d341e91bdaf4f339c2c48283 /llvm/lib/CodeGen | |
| parent | 3a851a27b8d27ab07ec9471ebf2d9f6adda65aae (diff) | |
| download | bcm5719-llvm-75961ecc1a5b0dff6303df886ea9817248b78931.tar.gz bcm5719-llvm-75961ecc1a5b0dff6303df886ea9817248b78931.zip | |
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.
llvm-svn: 184568
Diffstat (limited to 'llvm/lib/CodeGen')
| -rw-r--r-- | llvm/lib/CodeGen/RegisterCoalescer.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/RegisterCoalescer.cpp b/llvm/lib/CodeGen/RegisterCoalescer.cpp index 3cede9f4907..6e7d90dd65c 100644 --- a/llvm/lib/CodeGen/RegisterCoalescer.cpp +++ b/llvm/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)) |

