diff options
author | Dan Gohman <gohman@apple.com> | 2010-03-19 21:51:03 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2010-03-19 21:51:03 +0000 |
commit | 6c7ed6b54949949806797bafdf545fbfecb2cef5 (patch) | |
tree | 42b186af9d4379c816d912bda2519563fb0b698f /include/llvm/Analysis/ScalarEvolutionExpander.h | |
parent | 99521af21277bf6cc744f1a01fd9a6d32ac2673f (diff) | |
download | external_llvm-6c7ed6b54949949806797bafdf545fbfecb2cef5.zip external_llvm-6c7ed6b54949949806797bafdf545fbfecb2cef5.tar.gz external_llvm-6c7ed6b54949949806797bafdf545fbfecb2cef5.tar.bz2 |
Fix more places to more thoroughly ignore debug intrinsics. This fixes
use-before-def errors in SCEVExpander-produced code in sqlite3 when debug
info with optimization is enabled, though the testcases for this are
dependent on use-list order.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@99001 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Analysis/ScalarEvolutionExpander.h')
-rw-r--r-- | include/llvm/Analysis/ScalarEvolutionExpander.h | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/include/llvm/Analysis/ScalarEvolutionExpander.h b/include/llvm/Analysis/ScalarEvolutionExpander.h index 26dc0c4..8287094 100644 --- a/include/llvm/Analysis/ScalarEvolutionExpander.h +++ b/include/llvm/Analysis/ScalarEvolutionExpander.h @@ -79,12 +79,7 @@ namespace llvm { /// expandCodeFor - Insert code to directly compute the specified SCEV /// expression into the program. The inserted code is inserted into the /// specified block. - Value *expandCodeFor(const SCEV *SH, const Type *Ty, Instruction *I) { - BasicBlock::iterator IP = I; - while (isInsertedInstruction(IP)) ++IP; - Builder.SetInsertPoint(IP->getParent(), IP); - return expandCodeFor(SH, Ty); - } + Value *expandCodeFor(const SCEV *SH, const Type *Ty, Instruction *I); /// setIVIncInsertPos - Set the current IV increment loop and position. void setIVIncInsertPos(const Loop *L, Instruction *Pos) { |