We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1583158 commit 142cbe7Copy full SHA for 142cbe7
llvm/test/Transforms/SLPVectorizer/X86/reduction.ll
@@ -115,11 +115,11 @@ define i32 @horiz_max_multiple_uses([32 x i32]* %x, i32* %p) {
115
%t8 = select i1 %c012, i32 %s5, i32 %t2
116
%c0123 = icmp sgt i32 %t8, %t3
117
%rdx4 = select i1 %c0123, i32 %t8, i32 %t3
118
- %EXTRA_USE = icmp sgt i32 %rdx4, %t4
119
- %t14 = select i1 %EXTRA_USE, i32 %rdx4, i32 %t4
120
- %c012345 = icmp sgt i32 %t14, %t5
121
- %t17 = select i1 %c012345, i32 %t14, i32 %t5
122
- %THREE_OR_FOUR = select i1 %EXTRA_USE, i32 3, i32 4
123
- store i32 %THREE_OR_FOUR, i32* %p, align 8
+ %MAX_ROOT_CMP = icmp sgt i32 %rdx4, %t4
+ %MAX_ROOT_SEL = select i1 %MAX_ROOT_CMP, i32 %rdx4, i32 %t4
+ %c012345 = icmp sgt i32 %MAX_ROOT_SEL, %t5
+ %t17 = select i1 %c012345, i32 %MAX_ROOT_SEL, i32 %t5
+ %three_or_four = select i1 %MAX_ROOT_CMP, i32 3, i32 4
+ store i32 %three_or_four, i32* %p, align 8
124
ret i32 %t17
125
}
0 commit comments