diff options
author | Evan Cheng <evan.cheng@apple.com> | 2011-04-11 18:47:20 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2011-04-11 18:47:20 +0000 |
commit | fe917efc8b5e163aee4a0470196523bc0876cffd (patch) | |
tree | d3f95c07cb5e0469ae58e30d5dbd9ecb66ee5792 /llvm/lib/CodeGen/MachineSink.cpp | |
parent | 66fab75920853018efc5e03d91619ace4abc628a (diff) | |
download | llvm-fe917efc8b5e163aee4a0470196523bc0876cffd.zip llvm-fe917efc8b5e163aee4a0470196523bc0876cffd.tar.gz llvm-fe917efc8b5e163aee4a0470196523bc0876cffd.tar.bz2 |
Fix a couple of places where changes are made but not tracked.
llvm-svn: 129287
Diffstat (limited to 'llvm/lib/CodeGen/MachineSink.cpp')
-rw-r--r-- | llvm/lib/CodeGen/MachineSink.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/MachineSink.cpp b/llvm/lib/CodeGen/MachineSink.cpp index 8a93a24..916dff7 100644 --- a/llvm/lib/CodeGen/MachineSink.cpp +++ b/llvm/lib/CodeGen/MachineSink.cpp @@ -265,8 +265,11 @@ bool MachineSinking::ProcessBlock(MachineBasicBlock &MBB) { if (MI->isDebugValue()) continue; - if (PerformTrivialForwardCoalescing(MI, &MBB)) + bool Joined = PerformTrivialForwardCoalescing(MI, &MBB); + if (Joined) { + MadeChange = true; continue; + } if (SinkInstruction(MI, SawStore)) ++NumSunk, MadeChange = true; |