Skip to content

Commit c811ea4

Browse files
committed
Nit change '!(LHS eq RHS)' to 'LHS neq RHS'
1 parent 1151516 commit c811ea4

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

llvm/lib/Transforms/Scalar/DeadStoreElimination.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2241,8 +2241,7 @@ DSEState::eliminateDeadDefs(const MemoryLocationWrapper &KillingLocWrapper) {
22412241
if (!DebugCounter::shouldExecute(MemorySSACounter))
22422242
continue;
22432243
if (isMemTerminatorInst(KillingLocWrapper.DefInst)) {
2244-
if (!(KillingLocWrapper.UnderlyingObject ==
2245-
DeadLocWrapper.UnderlyingObject))
2244+
if (KillingLocWrapper.UnderlyingObject != DeadLocWrapper.UnderlyingObject)
22462245
continue;
22472246
LLVM_DEBUG(dbgs() << "DSE: Remove Dead Store:\n DEAD: "
22482247
<< *DeadLocWrapper.DefInst << "\n KILLER: "

0 commit comments

Comments
 (0)