[llvm] 7b5928e - [NFC] Update Transforms/LoopVectorize/RISCV/select-cmp-reduction.ll.
Mel Chen via llvm-commits
llvm-commits at lists.llvm.org
Fri Dec 2 01:09:07 PST 2022
Author: Mel Chen
Date: 2022-12-02T01:07:16-08:00
New Revision: 7b5928e4a70e37e466bba617bbc20cf9d8ce4da0
URL: https://github.com/llvm/llvm-project/commit/7b5928e4a70e37e466bba617bbc20cf9d8ce4da0
DIFF: https://github.com/llvm/llvm-project/commit/7b5928e4a70e37e466bba617bbc20cf9d8ce4da0.diff
LOG: [NFC] Update Transforms/LoopVectorize/RISCV/select-cmp-reduction.ll.
Added:
Modified:
llvm/test/Transforms/LoopVectorize/RISCV/select-cmp-reduction.ll
Removed:
################################################################################
diff --git a/llvm/test/Transforms/LoopVectorize/RISCV/select-cmp-reduction.ll b/llvm/test/Transforms/LoopVectorize/RISCV/select-cmp-reduction.ll
index 8f0cb7ce5d260..8c73b452d347b 100644
--- a/llvm/test/Transforms/LoopVectorize/RISCV/select-cmp-reduction.ll
+++ b/llvm/test/Transforms/LoopVectorize/RISCV/select-cmp-reduction.ll
@@ -255,6 +255,8 @@ define i32 @select_i32_from_icmp(i32* nocapture readonly %v, i32 %a, i32 %b, i64
; CHECK-NEXT: [[DOTSPLATINSERT:%.*]] = insertelement <4 x i32> poison, i32 [[A]], i32 0
; CHECK-NEXT: [[DOTSPLAT:%.*]] = shufflevector <4 x i32> [[DOTSPLATINSERT]], <4 x i32> poison, <4 x i32> zeroinitializer
; CHECK-NEXT: [[RDX_SELECT_CMP:%.*]] = icmp ne <4 x i32> [[TMP5]], [[DOTSPLAT]]
+; CHECK-NEXT: [[TMP7:%.*]] = call i1 @llvm.vector.reduce.or.v4i1(<4 x i1> [[RDX_SELECT_CMP]])
+; CHECK-NEXT: [[RDX_SELECT:%.*]] = select i1 [[TMP7]], i32 [[B]], i32 [[A]]
;
; SCALABLE-LABEL: @select_i32_from_icmp
; SCALABLE: vector.ph:
More information about the llvm-commits
mailing list