diff options
Diffstat (limited to 'llvm/lib/Transforms/Scalar/Sink.cpp')
-rw-r--r-- | llvm/lib/Transforms/Scalar/Sink.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/Scalar/Sink.cpp b/llvm/lib/Transforms/Scalar/Sink.cpp index 64109b2df11..eb09f584dc6 100644 --- a/llvm/lib/Transforms/Scalar/Sink.cpp +++ b/llvm/lib/Transforms/Scalar/Sink.cpp @@ -145,8 +145,10 @@ bool Sinking::ProcessBlock(BasicBlock &BB) { if (isa<DbgInfoIntrinsic>(Inst)) continue; - if (SinkInstruction(Inst, Stores)) - ++NumSunk, MadeChange = true; + if (SinkInstruction(Inst, Stores)) { + ++NumSunk; + MadeChange = true; + } // If we just processed the first instruction in the block, we're done. } while (!ProcessedBegin); |