Skip to content

Commit 61413cf

Browse files
committed
Simplify comment
1 parent 51967fe commit 61413cf

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

llvm/lib/Analysis/ValueTracking.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8061,8 +8061,7 @@ bool llvm::isKnownNegation(const Value *X, const Value *Y, bool NeedNSW,
80618061
return true;
80628062
};
80638063

8064-
// X = sub (0, Y) || X = sub nsw (0, Y)
8065-
// Y = sub (0, X) || Y = sub nsw (0, X)
8064+
// X = -Y or Y = -X
80668065
if (IsNegationOf(X, Y) || IsNegationOf(Y, X))
80678066
return true;
80688067

0 commit comments

Comments
 (0)