[llvm] [DAGCombiner] Fold min/max vscale, C -> C (PR #174708)
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Fri Jan 9 01:57:28 PST 2026
================
@@ -6253,6 +6243,34 @@ SDValue DAGCombiner::visitIMINMAX(SDNode *N) {
SDLoc(N), VT, N0, N1))
return SD;
+ // Fold operation with vscale operands.
+ if (N0.getOpcode() == ISD::VSCALE && N1.getOpcode() == ISD::VSCALE) {
----------------
RKSimon wrote:
Are you looking at adding SelectionDAG computeConstantRange / computeConstantRangeIncludingKnownBits?
https://github.com/llvm/llvm-project/pull/174708
More information about the llvm-commits
mailing list