llvm.org GIT mirror llvm / 041de42
Don't assume that two identical instructions that read from memory will always return the same value. This isn't currently necessary, since this code doesn't currently ever get called under circumstances where it would matter, but it may some day. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@80017 91177308-0d34-0410-b5e6-96231b3b80d8 Dan Gohman 11 years ago
1 changed file(s) with 1 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
43484348 if (const SCEVUnknown *BU = dyn_cast(B))
43494349 if (const Instruction *AI = dyn_cast(AU->getValue()))
43504350 if (const Instruction *BI = dyn_cast(BU->getValue()))
4351 if (AI->isIdenticalTo(BI))
4351 if (AI->isIdenticalTo(BI) && !AI->mayReadFromMemory())
43524352 return true;
43534353
43544354 // Otherwise assume they may have a different value.