Skip to content

Commit bcc802f

Browse files
committed
[DSE] Remove a redundant call to getLocForWriteEx()
Differential Revision: https://reviews.llvm.org/D92263
1 parent 6f0f844 commit bcc802f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Transforms/Scalar/DeadStoreElimination.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2505,7 +2505,7 @@ bool eliminateDeadStoresMemorySSA(Function &F, AliasAnalysis &AA,
25052505
continue;
25062506
Instruction *SI = KillingDef->getMemoryInst();
25072507

2508-
auto MaybeSILoc = State.getLocForWriteEx(SI);
2508+
Optional<MemoryLocation> MaybeSILoc;
25092509
if (State.isMemTerminatorInst(SI))
25102510
MaybeSILoc = State.getLocForTerminator(SI).map(
25112511
[](const std::pair<MemoryLocation, bool> &P) { return P.first; });

0 commit comments

Comments
 (0)