OSDN Git Service
(root)
/
android-x86
/
external-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b2cc1a3
)
Another place where debug info affected codegen.
author
Dale Johannesen
<dalej@apple.com>
Tue, 9 Mar 2010 01:08:11 +0000
(
01:08
+0000)
committer
Dale Johannesen
<dalej@apple.com>
Tue, 9 Mar 2010 01:08:11 +0000
(
01:08
+0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@98026
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Analysis/ScalarEvolutionExpander.cpp
patch
|
blob
|
history
diff --git
a/lib/Analysis/ScalarEvolutionExpander.cpp
b/lib/Analysis/ScalarEvolutionExpander.cpp
index
e27da96
..
3c2cbfb
100644
(file)
--- a/
lib/Analysis/ScalarEvolutionExpander.cpp
+++ b/
lib/Analysis/ScalarEvolutionExpander.cpp
@@
-1286,6
+1286,8
@@
Value *SCEVExpander::expand(const SCEV *S) {
// there) so that it is guaranteed to dominate any user inside the loop.
if (L && S->hasComputableLoopEvolution(L) && L != PostIncLoop)
InsertPt = L->getHeader()->getFirstNonPHI();
+ while (isa<DbgInfoIntrinsic>(InsertPt))
+ InsertPt = llvm::next(BasicBlock::iterator(InsertPt));
while (isInsertedInstruction(InsertPt))
InsertPt = llvm::next(BasicBlock::iterator(InsertPt));
break;