diff options
author | Dale Johannesen <dalej@apple.com> | 2009-03-03 01:09:07 +0000 |
---|---|---|
committer | Dale Johannesen <dalej@apple.com> | 2009-03-03 01:09:07 +0000 |
commit | bd8e650876cc93952dde3120938271dbda6cbbb7 (patch) | |
tree | 507a6aae96bcd4fe35ebbd2f1d7ff5f8b6e7e3d4 /include/llvm/Transforms/Utils | |
parent | cd11991203f2f8ca8b0c7bd920fa4e32b4f88e1d (diff) | |
download | external_llvm-bd8e650876cc93952dde3120938271dbda6cbbb7.zip external_llvm-bd8e650876cc93952dde3120938271dbda6cbbb7.tar.gz external_llvm-bd8e650876cc93952dde3120938271dbda6cbbb7.tar.bz2 |
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
Diffstat (limited to 'include/llvm/Transforms/Utils')
-rw-r--r-- | include/llvm/Transforms/Utils/BasicBlockUtils.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/llvm/Transforms/Utils/BasicBlockUtils.h b/include/llvm/Transforms/Utils/BasicBlockUtils.h index 429d3b6..a629b11 100644 --- a/include/llvm/Transforms/Utils/BasicBlockUtils.h +++ b/include/llvm/Transforms/Utils/BasicBlockUtils.h @@ -60,6 +60,11 @@ void ReplaceInstWithInst(BasicBlock::InstListType &BIL, // void ReplaceInstWithInst(Instruction *From, Instruction *To); +/// CopyPrecedingStopPoint - If I is immediately preceded by a StopPoint, +/// make a copy of the stoppoint before InsertPos (presumably before copying +/// or moving I). +void CopyPrecedingStopPoint(Instruction *I, BasicBlock::iterator InsertPos); + /// FindAvailableLoadedValue - Scan the ScanBB block backwards (starting at the /// instruction before ScanFrom) checking to see if we have the value at the /// memory address *Ptr locally available within a small number of instructions. |