[llvm] 8521550 - [X86] Use m_APIntAllowPoison instead of m_APIntAllowUndef
Nikita Popov via llvm-commits
llvm-commits at lists.llvm.org
Wed Apr 17 23:59:51 PDT 2024
Author: Nikita Popov
Date: 2024-04-18T15:56:03+09:00
New Revision: 85215508966abbedaf80a7a0a2ae4687a46447fe
URL: https://github.com/llvm/llvm-project/commit/85215508966abbedaf80a7a0a2ae4687a46447fe
DIFF: https://github.com/llvm/llvm-project/commit/85215508966abbedaf80a7a0a2ae4687a46447fe.diff
LOG: [X86] Use m_APIntAllowPoison instead of m_APIntAllowUndef
Fix build after 1baa3850656382d1d549a13f8a716ef5dc886eb8.
Added:
Modified:
llvm/lib/Target/X86/X86TargetTransformInfo.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/X86/X86TargetTransformInfo.cpp b/llvm/lib/Target/X86/X86TargetTransformInfo.cpp
index d111c4d4ecc1ae..515847617e6105 100644
--- a/llvm/lib/Target/X86/X86TargetTransformInfo.cpp
+++ b/llvm/lib/Target/X86/X86TargetTransformInfo.cpp
@@ -4123,7 +4123,7 @@ X86TTIImpl::getIntrinsicInstrCost(const IntrinsicCostAttributes &ICA,
// TODO: Handle funnel-shift cases.
const APInt *Amt;
if (Args[2] &&
- PatternMatch::match(Args[2], PatternMatch::m_APIntAllowUndef(Amt)))
+ PatternMatch::match(Args[2], PatternMatch::m_APIntAllowPoison(Amt)))
ISD = X86ISD::VROTLI;
}
}
@@ -4139,7 +4139,7 @@ X86TTIImpl::getIntrinsicInstrCost(const IntrinsicCostAttributes &ICA,
// TODO: Handle funnel-shift cases.
const APInt *Amt;
if (Args[2] &&
- PatternMatch::match(Args[2], PatternMatch::m_APIntAllowUndef(Amt)))
+ PatternMatch::match(Args[2], PatternMatch::m_APIntAllowPoison(Amt)))
ISD = X86ISD::VROTLI;
}
}
More information about the llvm-commits
mailing list