mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-07 12:28:24 +00:00
cache result of operator*
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@107968 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -190,8 +190,9 @@ bool LCSSA::ProcessInstruction(Instruction *Inst,
|
||||
|
||||
for (Value::use_iterator UI = Inst->use_begin(), E = Inst->use_end();
|
||||
UI != E; ++UI) {
|
||||
BasicBlock *UserBB = cast<Instruction>(*UI)->getParent();
|
||||
if (PHINode *PN = dyn_cast<PHINode>(*UI))
|
||||
User *U = *UI;
|
||||
BasicBlock *UserBB = cast<Instruction>(U)->getParent();
|
||||
if (PHINode *PN = dyn_cast<PHINode>(U))
|
||||
UserBB = PN->getIncomingBlock(UI);
|
||||
|
||||
if (InstBB != UserBB && !inLoop(UserBB))
|
||||
|
Reference in New Issue
Block a user