mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-18 13:34:04 +00:00
Fix a bug in the previous checkin that broke 255.vortex
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16355 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
e0de1d64be
commit
bdacd87957
@ -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…
x
Reference in New Issue
Block a user