[llvm] [RISCV] Combine vslide{up,down} x, poison -> x (PR #169013)
Luke Lau via llvm-commits
llvm-commits at lists.llvm.org
Fri Nov 21 10:02:34 PST 2025
================
@@ -21834,6 +21834,11 @@ SDValue RISCVTargetLowering::PerformDAGCombine(SDNode *N,
return N->getOperand(0);
break;
}
+ case RISCVISD::VSLIDEDOWN_VL:
+ case RISCVISD::VSLIDEUP_VL:
+ if (N->getOperand(1)->isUndef())
----------------
lukel97 wrote:
If we add an undef test then the undef detector linter will complain.
For the use case in the loop vectorizer just handling poison is fine if we want to avoid isUndef. Are we moving away from it in SelectionDAG?
https://github.com/llvm/llvm-project/pull/169013
More information about the llvm-commits
mailing list