mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-24 23:28:41 +00:00
IVUsers no longer needs to record the phis.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@133518 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -1804,8 +1804,7 @@ LSRInstance::OptimizeLoopTermCond() {
|
||||
ExitingBlock->getInstList().insert(TermBr, Cond);
|
||||
|
||||
// Clone the IVUse, as the old use still exists!
|
||||
CondUse = &IU.AddUser(Cond, CondUse->getOperandValToReplace(),
|
||||
CondUse->getPhi());
|
||||
CondUse = &IU.AddUser(Cond, CondUse->getOperandValToReplace());
|
||||
TermBr->replaceUsesOfWith(OldCond, Cond);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user