[llvm] [DAGCombiner] Fold umax/umin operations with vscale operands (PR #154461)
Jim Lin via llvm-commits
llvm-commits at lists.llvm.org
Tue Aug 19 22:22:58 PDT 2025
================
@@ -397,48 +397,26 @@ define <vscale x 32 x i32> @select_nxv32i32(<vscale x 32 x i1> %a, <vscale x 32
declare i32 @llvm.vscale.i32()
-define <vscale x 32 x i32> @select_evl_nxv32i32(<vscale x 32 x i1> %a, <vscale x 32 x i32> %b, <vscale x 32 x i32> %c) {
+define <vscale x 32 x i32> @select_evl_nxv32i32(<vscale x 32 x i1> %a, <vscale x 32 x i32> %b, <vscale x 32 x i32> %c) vscale_range(2,1024) {
----------------
tclin914 wrote:
Unfortunately, we still need to specify the range of vscale to remove the extra `and` on RV64, even with `-mattr=+v`.
https://github.com/llvm/llvm-project/pull/154461
More information about the llvm-commits
mailing list