return false;
}
-static bool removePartiallyOverlappedStores(AliasAnalysis *AA,
- const DataLayout &DL,
+static bool removePartiallyOverlappedStores(const DataLayout &DL,
InstOverlapIntervalsTy &IOL) {
bool Changed = false;
for (auto OI : IOL) {
}
if (EnablePartialOverwriteTracking)
- MadeChange |= removePartiallyOverlappedStores(AA, DL, IOL);
+ MadeChange |= removePartiallyOverlappedStores(DL, IOL);
// If this block ends in a return, unwind, or unreachable, all allocas are
// dead at its end, which means stores to them are also dead.
if (EnablePartialOverwriteTracking)
for (auto &KV : State.IOLs)
- MadeChange |= removePartiallyOverlappedStores(&AA, DL, KV.second);
+ MadeChange |= removePartiallyOverlappedStores(DL, KV.second);
MadeChange |= State.eliminateDeadWritesAtEndOfFunction();
return MadeChange;