[llvm] [X86] Combine `store + vselect` to `masked_store` (PR #145176)
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Sun Jun 22 06:15:35 PDT 2025
================
@@ -513,6 +513,12 @@ m_VSelect(const T0_P &Cond, const T1_P &T, const T2_P &F) {
return TernaryOpc_match<T0_P, T1_P, T2_P>(ISD::VSELECT, Cond, T, F);
}
+template <typename T0_P, typename T1_P, typename T2_P>
+inline TernaryOpc_match<T0_P, T1_P, T2_P>
+m_Load(const T0_P &Ch, const T1_P &Ptr, const T2_P &Offset) {
+ return TernaryOpc_match<T0_P, T1_P, T2_P>(ISD::LOAD, Ch, Ptr, Offset);
+}
----------------
RKSimon wrote:
Please can you pull this out into its own PR and add unittests to SelectionDAGPatternMatchTest.cpp
https://github.com/llvm/llvm-project/pull/145176
More information about the llvm-commits
mailing list