[llvm] [RISCV] Lower VP_SELECT constant false to use vmerge.vxm/vmerge.vim (PR #144461)

Liao Chunyu via llvm-commits llvm-commits at lists.llvm.org
Wed Jun 18 17:30:08 PDT 2025


================
@@ -8170,11 +8170,17 @@ SDValue RISCVTargetLowering::LowerOperation(SDValue Op,
     return lowerRESET_FPENV(Op, DAG);
   case ISD::EH_DWARF_CFA:
     return lowerEH_DWARF_CFA(Op, DAG);
+  case ISD::VP_SELECT:
+    if (SDValue Op2 = Op.getOperand(2);
----------------
ChunyuLiao wrote:

I previously implemented a version using combinehttps://github.com/llvm/llvm-project/commit/3151db1ab319a014579d5b96b77c7f5e44789319, but then thought lowering would be more appropriate and switched to that,now I'm about to switch it back. thanks

https://github.com/llvm/llvm-project/pull/144461


More information about the llvm-commits mailing list