Skip to content

Commit 4ee94da

Browse files
AZero13dtcxzyw
andauthored
Update llvm/lib/Transforms/InstCombine/InstCombineSelect.cpp
Co-authored-by: Yingwei Zheng <[email protected]>
1 parent 69b4526 commit 4ee94da

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Transforms/InstCombine/InstCombineSelect.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1147,7 +1147,7 @@ static Value *canonicalizeSaturatedAddSigned(ICmpInst *Cmp, Value *TVal,
11471147
if (!match(TVal, m_MaxSignedValue()))
11481148
return nullptr;
11491149

1150-
// sge maximum signed value is canonicalized to eq minimum signed value and
1150+
// sge maximum signed value is canonicalized to eq maximum signed value and
11511151
// requires special handling (a == INT_MAX) ? INT_MAX : a + 1 -> sadd.sat(a,
11521152
// 1)
11531153
if (Pred == ICmpInst::ICMP_EQ) {

0 commit comments

Comments
 (0)