forked from OSchip/llvm-project
Fix a bug in the previous checkin that broke 255.vortex
llvm-svn: 16355
This commit is contained in:
parent
0507ffebb1
commit
f11216d24f
|
@ -643,7 +643,7 @@ void LICM::PromoteValuesInLoop() {
|
|||
LoadValue = LI;
|
||||
break;
|
||||
} else if (StoreInst *SI = dyn_cast<StoreInst>(*UI)) {
|
||||
if (SI->getOperand(1) == LI) {
|
||||
if (SI->getOperand(1) == Ptr) {
|
||||
LoadValue = SI->getOperand(0);
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue