Skip to content

Commit 8521550

Browse files
committed
[X86] Use m_APIntAllowPoison instead of m_APIntAllowUndef
Fix build after 1baa385.
1 parent 1baa385 commit 8521550

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/lib/Target/X86/X86TargetTransformInfo.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4123,7 +4123,7 @@ X86TTIImpl::getIntrinsicInstrCost(const IntrinsicCostAttributes &ICA,
41234123
// TODO: Handle funnel-shift cases.
41244124
const APInt *Amt;
41254125
if (Args[2] &&
4126-
PatternMatch::match(Args[2], PatternMatch::m_APIntAllowUndef(Amt)))
4126+
PatternMatch::match(Args[2], PatternMatch::m_APIntAllowPoison(Amt)))
41274127
ISD = X86ISD::VROTLI;
41284128
}
41294129
}
@@ -4139,7 +4139,7 @@ X86TTIImpl::getIntrinsicInstrCost(const IntrinsicCostAttributes &ICA,
41394139
// TODO: Handle funnel-shift cases.
41404140
const APInt *Amt;
41414141
if (Args[2] &&
4142-
PatternMatch::match(Args[2], PatternMatch::m_APIntAllowUndef(Amt)))
4142+
PatternMatch::match(Args[2], PatternMatch::m_APIntAllowPoison(Amt)))
41434143
ISD = X86ISD::VROTLI;
41444144
}
41454145
}

0 commit comments

Comments
 (0)