forked from OSchip/llvm-project
cache result of operator* (found by inspection)
llvm-svn: 107971
This commit is contained in:
parent
1bc49c9d82
commit
d323f5e161
|
@ -2214,8 +2214,10 @@ bool GVN::performPRE(Function &F) {
|
|||
CurInst->getName() + ".pre-phi",
|
||||
CurrentBlock->begin());
|
||||
for (pred_iterator PI = pred_begin(CurrentBlock),
|
||||
PE = pred_end(CurrentBlock); PI != PE; ++PI)
|
||||
Phi->addIncoming(predMap[*PI], *PI);
|
||||
PE = pred_end(CurrentBlock); PI != PE; ++PI) {
|
||||
BasicBlock *P = *PI;
|
||||
Phi->addIncoming(predMap[P], P);
|
||||
}
|
||||
|
||||
VN.add(Phi, ValNo);
|
||||
localAvail[CurrentBlock]->table[ValNo] = Phi;
|
||||
|
|
Loading…
Reference in New Issue