commit | bd8e650876cc93952dde3120938271dbda6cbbb7 | [log] [tgz] |
---|---|---|
author | Dale Johannesen <dalej@apple.com> | Tue Mar 03 01:09:07 2009 +0000 |
committer | Dale Johannesen <dalej@apple.com> | Tue Mar 03 01:09:07 2009 +0000 |
tree | 507a6aae96bcd4fe35ebbd2f1d7ff5f8b6e7e3d4 | |
parent | cd11991203f2f8ca8b0c7bd920fa4e32b4f88e1d [diff] [blame] |
When sinking an insn in InstCombine bring its debug info with it. Don't count debug info insns against the scan maximum in FindAvailableLoadedValue (lest they affect codegen). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@65910 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Transforms/Scalar/InstructionCombining.cpp b/lib/Transforms/Scalar/InstructionCombining.cpp index 7ddbb4c..e0d3ac4 100644 --- a/lib/Transforms/Scalar/InstructionCombining.cpp +++ b/lib/Transforms/Scalar/InstructionCombining.cpp
@@ -12374,6 +12374,7 @@ BasicBlock::iterator InsertPos = DestBlock->getFirstNonPHI(); + CopyPrecedingStopPoint(I, InsertPos); I->moveBefore(InsertPos); ++NumSunkInst; return true;