mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-02 08:46:37 +00:00
Add special check to avoid isLoop call. Simple, but doesn't seem to speed
up lcssa much in practice. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29465 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
880ddb018a
commit
f9ba401bf5
@ -177,7 +177,7 @@ void LCSSA::ProcessInstruction(Instruction *Instr,
|
||||
}
|
||||
|
||||
// If the user is in the loop, don't rewrite it!
|
||||
if (inLoop(UserBB)) {
|
||||
if (UserBB == Instr->getParent() || inLoop(UserBB)) {
|
||||
++UI;
|
||||
continue;
|
||||
}
|
||||
@ -215,7 +215,7 @@ SetVector<Instruction*> LCSSA::getLoopValuesUsedOutsideLoop(Loop *L) {
|
||||
UserBB = p->getIncomingBlock(OperandNo/2);
|
||||
}
|
||||
|
||||
if (!inLoop(UserBB)) {
|
||||
if (*BB != UserBB && !inLoop(UserBB)) {
|
||||
AffectedValues.insert(I);
|
||||
break;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user