Skip to content

Commit 476594f

Browse files
committed
GVN: fix nit
1 parent 7fe3741 commit 476594f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

llvm/lib/Transforms/Scalar/GVN.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2514,8 +2514,7 @@ bool GVNPass::propagateEquality(Value *LHS, Value *RHS,
25142514
// If "A == B" is known true, or "A != B" is known false, then replace
25152515
// A with B everywhere in the scope. For floating point operations, we
25162516
// have to be careful since equality does not always imply equivalance.
2517-
if ((isKnownTrue && Cmp->isEquivalence()) ||
2518-
(isKnownFalse && Cmp->isEquivalence(/* Invert = */ true)))
2517+
if (Cmp->isEquivalence(isKnownFalse))
25192518
Worklist.push_back(std::make_pair(Op0, Op1));
25202519

25212520
// If "A >= B" is known true, replace "A < B" with false everywhere.

0 commit comments

Comments
 (0)