From fe917efc8b5e163aee4a0470196523bc0876cffd Mon Sep 17 00:00:00 2001 From: Evan Cheng Date: Mon, 11 Apr 2011 18:47:20 +0000 Subject: Fix a couple of places where changes are made but not tracked. llvm-svn: 129287 --- llvm/lib/CodeGen/MachineSink.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'llvm/lib/CodeGen/MachineSink.cpp') diff --git a/llvm/lib/CodeGen/MachineSink.cpp b/llvm/lib/CodeGen/MachineSink.cpp index 8a93a24287b..916dff70a41 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; -- cgit v1.2.3