[llvm] [DAGCombiner] Fold min/max vscale, C -> C (PR #174708)
Luke Lau via llvm-commits
llvm-commits at lists.llvm.org
Fri Jan 9 01:58:46 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) {
----------------
lukel97 wrote:
Not in this PR but if someone wants to add it I'll gladly use it :)
https://github.com/llvm/llvm-project/pull/174708
More information about the llvm-commits
mailing list