[llvm] [DAGCombiner] Fold min/max vscale, C -> C (PR #174708)

Simon Pilgrim via llvm-commits llvm-commits at lists.llvm.org
Mon Jan 12 02:41:41 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:

Yes, in fact having this PR in already means #175150 can have better test coverage

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


More information about the llvm-commits mailing list