[llvm] [PatternMatch] Add a matching helper `m_ElementWiseBitCast`. NFC. (PR #80764)
Yingwei Zheng via llvm-commits
llvm-commits at lists.llvm.org
Tue Feb 6 18:15:42 PST 2024
================
@@ -2382,7 +2382,8 @@ static Instruction *foldSelectToCopysign(SelectInst &Sel,
const APInt *C;
bool IsTrueIfSignSet;
ICmpInst::Predicate Pred;
- if (!match(Cond, m_OneUse(m_ICmp(Pred, m_BitCast(m_Value(X)), m_APInt(C)))) ||
+ if (!match(Cond, m_OneUse(m_ICmp(Pred, m_ElementWiseBitCast(m_Value(X)),
----------------
dtcxzyw wrote:
Done.
https://github.com/llvm/llvm-project/pull/80764
More information about the llvm-commits
mailing list