[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
Tue Jun 17 21:18:35 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:

Indeed,  pre-lowering combine is a better,  it reuses the optimization from the SDNode, and I've already made the change.

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


More information about the llvm-commits mailing list