mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-12 17:32:19 +00:00
Ignore debug intrinsics in yet more places.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@99580 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
9f68948609
commit
449f31cb9d
@ -2827,6 +2827,7 @@ Value *LSRInstance::Expand(const LSRFixup &LF,
|
||||
IP = Tentative;
|
||||
}
|
||||
while (isa<PHINode>(IP)) ++IP;
|
||||
while (isa<DbgInfoIntrinsic>(IP)) ++IP;
|
||||
|
||||
// Inform the Rewriter if we have a post-increment use, so that it can
|
||||
// perform an advantageous expansion.
|
||||
@ -2864,8 +2865,10 @@ Value *LSRInstance::Expand(const LSRFixup &LF,
|
||||
// so that it is dominated by its operand. If the original insert point
|
||||
// was already dominated by the increment, keep it, because there may
|
||||
// be loop-variant operands that need to be respected also.
|
||||
if (L->contains(LF.UserInst) && !DT.dominates(IVIncInsertPos, IP))
|
||||
if (L->contains(LF.UserInst) && !DT.dominates(IVIncInsertPos, IP)) {
|
||||
IP = IVIncInsertPos;
|
||||
while (isa<DbgInfoIntrinsic>(IP)) ++IP;
|
||||
}
|
||||
break;
|
||||
}
|
||||
Start = AR->getStart();
|
||||
|
Loading…
x
Reference in New Issue
Block a user