mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-20 16:17:38 +00:00
implement PR8576, deleting dead stores with intervening may-alias stores.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@119927 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -409,9 +409,9 @@ MemDepResult MemoryDependenceAnalysis::getDependency(Instruction *QueryInst) {
|
||||
if (MemLoc.Ptr) {
|
||||
// If we can do a pointer scan, make it happen.
|
||||
bool isLoad = !(MR & AliasAnalysis::Mod);
|
||||
if (IntrinsicInst *II = dyn_cast<MemoryUseIntrinsic>(QueryInst)) {
|
||||
if (IntrinsicInst *II = dyn_cast<MemoryUseIntrinsic>(QueryInst))
|
||||
isLoad |= II->getIntrinsicID() == Intrinsic::lifetime_end;
|
||||
}
|
||||
|
||||
LocalCache = getPointerDependencyFrom(MemLoc, isLoad, ScanPos,
|
||||
QueryParent);
|
||||
} else if (isa<CallInst>(QueryInst) || isa<InvokeInst>(QueryInst)) {
|
||||
|
||||
Reference in New Issue
Block a user