[llvm] [RISCV] Rewrite vrgather.vx undef, (vmv.s.x), 0, v0 as vmv.v.x (PR #136010)

Craig Topper via llvm-commits llvm-commits at lists.llvm.org
Thu Apr 17 09:53:31 PDT 2025


================
@@ -19710,20 +19709,47 @@ SDValue RISCVTargetLowering::PerformDAGCombine(SDNode *N,
       return V;
     break;
   case RISCVISD::VRGATHER_VX_VL: {
-    // Drop a redundant vrgather_vx.
+    using namespace llvm::SDPatternMatch;
----------------
topperc wrote:

You don't need this now

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


More information about the llvm-commits mailing list