We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent db30a00 commit b6ebdc1Copy full SHA for b6ebdc1
llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp
@@ -1978,7 +1978,7 @@ Instruction *InstCombinerImpl::visitCallInst(CallInst &CI) {
1978
// And i1's have been changed to and/ors
1979
// So we only need to check for smin
1980
if (IID == Intrinsic::smin) {
1981
- if (match(I0, m_OneUse(m_Intrinsic<Intrinsic::smax>(m_Value(X),
+ if (match(I0, m_OneUse(m_SMax(m_Value(X),
1982
m_AllOnes()))) &&
1983
match(I1, m_One())) {
1984
Value *Zero = ConstantInt::get(X->getType(), 0);
0 commit comments