mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-19 17:33:29 +00:00
Fix a miscompilation in spiff on PPC.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@44437 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
1953d0cb7d
commit
1fb136464d
@ -1054,7 +1054,8 @@ bool GVN::processInstruction(Instruction* I,
|
||||
if (CI->getCalledFunction() &&
|
||||
!AA.doesNotAccessMemory(CI->getCalledFunction())) {
|
||||
MemoryDependenceAnalysis& MD = getAnalysis<MemoryDependenceAnalysis>();
|
||||
if (MD.getDependency(CI) != MD.getDependency(cast<CallInst>(repl))) {
|
||||
if (cast<Instruction>(repl)->getParent() != CI->getParent() ||
|
||||
MD.getDependency(CI) != MD.getDependency(cast<CallInst>(repl))) {
|
||||
// There must be an intervening may-alias store, so nothing from
|
||||
// this point on will be able to be replaced with the preceding call
|
||||
currAvail.erase(repl);
|
||||
|
Loading…
Reference in New Issue
Block a user