Skip to content

Commit b6ebdc1

Browse files
AZero13dtcxzyw
andauthored
Update InstCombineCalls.cpp
Co-authored-by: Yingwei Zheng <[email protected]>
1 parent db30a00 commit b6ebdc1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1978,7 +1978,7 @@ Instruction *InstCombinerImpl::visitCallInst(CallInst &CI) {
19781978
// And i1's have been changed to and/ors
19791979
// So we only need to check for smin
19801980
if (IID == Intrinsic::smin) {
1981-
if (match(I0, m_OneUse(m_Intrinsic<Intrinsic::smax>(m_Value(X),
1981+
if (match(I0, m_OneUse(m_SMax(m_Value(X),
19821982
m_AllOnes()))) &&
19831983
match(I1, m_One())) {
19841984
Value *Zero = ConstantInt::get(X->getType(), 0);

0 commit comments

Comments
 (0)