Skip to content

Commit 0c58e22

Browse files
committed
remove previous comment
1 parent 246d414 commit 0c58e22

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

llvm/lib/Analysis/ValueTracking.cpp

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -424,11 +424,7 @@ static void computeKnownBitsMul(const Value *Op0, const Value *Op1, bool NSW,
424424
else if (isKnownNegative && !Known.isNonNegative())
425425
Known.makeNegative();
426426

427-
// Additional logic: If both operands are the same sign- or zero-extended
428-
// value from a small integer, and the multiplication is (sext x) * (sext x)
429-
// or (zext x) * (zext x), then the result cannot set bits above the maximum
430-
// possible square. This allows InstCombine and other passes to fold (x * x) &
431-
// (1 << N) to 0 when N is out of range.
427+
// Check if both operands are the same sign-extension of a single value.
432428
const Value *A = nullptr;
433429

434430
if (match(Op0, m_SExt(m_Value(A))) && match(Op1, m_SExt(m_Specific(A)))) {

0 commit comments

Comments
 (0)