Skip to content

Commit

Permalink
Simplify comment
Browse files Browse the repository at this point in the history
  • Loading branch information
nikic committed Apr 24, 2024
1 parent 51967fe commit 61413cf
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions llvm/lib/Analysis/ValueTracking.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8061,8 +8061,7 @@ bool llvm::isKnownNegation(const Value *X, const Value *Y, bool NeedNSW,
return true;
};

// X = sub (0, Y) || X = sub nsw (0, Y)
// Y = sub (0, X) || Y = sub nsw (0, X)
// X = -Y or Y = -X
if (IsNegationOf(X, Y) || IsNegationOf(Y, X))
return true;

Expand Down

0 comments on commit 61413cf

Please sign in to comment.