@@ -63,11 +63,10 @@ define i32 @reduction(ptr %a, i64 %n, i32 %start) {
63
63
; IF-EVL-OUTLOOP-EMPTY:
64
64
; IF-EVL-OUTLOOP-NEXT: middle.block:
65
65
; IF-EVL-OUTLOOP-NEXT: EMIT vp<[[RDX:%.+]]> = compute-reduction-result ir<[[RDX_PHI]]>, vp<[[RDX_SELECT]]>
66
- ; IF-EVL-OUTLOOP-NEXT: EMIT vp<[[RDX_EX:%.+]]> = extract-last-element vp<[[RDX]]>
67
66
; IF-EVL-OUTLOOP-NEXT: Successor(s): ir-bb<for.end>
68
67
; IF-EVL-OUTLOOP-EMPTY:
69
68
; IF-EVL-OUTLOOP-NEXT: ir-bb<for.end>:
70
- ; IF-EVL-OUTLOOP-NEXT: IR %add.lcssa = phi i32 [ %add, %for.body ] (extra operand: vp<[[RDX_EX ]]> from middle.block)
69
+ ; IF-EVL-OUTLOOP-NEXT: IR %add.lcssa = phi i32 [ %add, %for.body ] (extra operand: vp<[[RDX ]]> from middle.block)
71
70
; IF-EVL-OUTLOOP-NEXT: No successors
72
71
;
73
72
@@ -103,11 +102,10 @@ define i32 @reduction(ptr %a, i64 %n, i32 %start) {
103
102
; IF-EVL-INLOOP-EMPTY:
104
103
; IF-EVL-INLOOP-NEXT: middle.block:
105
104
; IF-EVL-INLOOP-NEXT: EMIT vp<[[RDX:%.+]]> = compute-reduction-result ir<[[RDX_PHI]]>, ir<[[ADD]]>
106
- ; IF-EVL-INLOOP-NEXT: EMIT vp<[[RDX_EX:%.+]]> = extract-last-element vp<[[RDX]]>
107
105
; IF-EVL-INLOOP-NEXT: Successor(s): ir-bb<for.end>
108
106
; IF-EVL-INLOOP-EMPTY:
109
107
; IF-EVL-INLOOP-NEXT: ir-bb<for.end>:
110
- ; IF-EVL-INLOOP-NEXT: IR %add.lcssa = phi i32 [ %add, %for.body ] (extra operand: vp<[[RDX_EX ]]> from middle.block)
108
+ ; IF-EVL-INLOOP-NEXT: IR %add.lcssa = phi i32 [ %add, %for.body ] (extra operand: vp<[[RDX ]]> from middle.block)
111
109
; IF-EVL-INLOOP-NEXT: No successors
112
110
;
113
111
@@ -138,13 +136,12 @@ define i32 @reduction(ptr %a, i64 %n, i32 %start) {
138
136
; NO-VP-OUTLOOP-EMPTY:
139
137
; NO-VP-OUTLOOP-NEXT: middle.block:
140
138
; NO-VP-OUTLOOP-NEXT: EMIT vp<[[RDX:%.+]]> = compute-reduction-result ir<[[RDX_PHI]]>, ir<[[ADD]]>
141
- ; NO-VP-OUTLOOP-NEXT: EMIT vp<[[RDX_EX:%.+]]> = extract-last-element vp<[[RDX]]>
142
139
; NO-VP-OUTLOOP-NEXT: EMIT vp<[[BOC:%.+]]> = icmp eq ir<%n>, vp<[[VTC]]>
143
140
; NO-VP-OUTLOOP-NEXT: EMIT branch-on-cond vp<[[BOC]]>
144
141
; NO-VP-OUTLOOP-NEXT: Successor(s): ir-bb<for.end>, scalar.ph
145
142
; NO-VP-OUTLOOP-EMPTY:
146
143
; NO-VP-OUTLOOP-NEXT: ir-bb<for.end>:
147
- ; NO-VP-OUTLOOP-NEXT: IR %add.lcssa = phi i32 [ %add, %for.body ] (extra operand: vp<[[RDX_EX ]]> from middle.block)
144
+ ; NO-VP-OUTLOOP-NEXT: IR %add.lcssa = phi i32 [ %add, %for.body ] (extra operand: vp<[[RDX ]]> from middle.block)
148
145
; NO-VP-OUTLOOP-NEXT: No successors
149
146
; NO-VP-OUTLOOP-EMPTY:
150
147
; NO-VP-OUTLOOP-NEXT: scalar.ph:
@@ -187,13 +184,12 @@ define i32 @reduction(ptr %a, i64 %n, i32 %start) {
187
184
; NO-VP-INLOOP-EMPTY:
188
185
; NO-VP-INLOOP-NEXT: middle.block:
189
186
; NO-VP-INLOOP-NEXT: EMIT vp<[[RDX:%.+]]> = compute-reduction-result ir<[[RDX_PHI]]>, ir<[[ADD]]>
190
- ; NO-VP-INLOOP-NEXT: EMIT vp<[[RDX_EX:%.+]]> = extract-last-element vp<[[RDX]]>
191
187
; NO-VP-INLOOP-NEXT: EMIT vp<[[BOC:%.+]]> = icmp eq ir<%n>, vp<[[VTC]]>
192
188
; NO-VP-INLOOP-NEXT: EMIT branch-on-cond vp<[[BOC]]>
193
189
; NO-VP-INLOOP-NEXT: Successor(s): ir-bb<for.end>, scalar.ph
194
190
; NO-VP-INLOOP-EMPTY:
195
191
; NO-VP-INLOOP-NEXT: ir-bb<for.end>:
196
- ; NO-VP-INLOOP-NEXT: IR %add.lcssa = phi i32 [ %add, %for.body ] (extra operand: vp<[[RDX_EX ]]> from middle.block)
192
+ ; NO-VP-INLOOP-NEXT: IR %add.lcssa = phi i32 [ %add, %for.body ] (extra operand: vp<[[RDX ]]> from middle.block)
197
193
; NO-VP-INLOOP-NEXT: No successors
198
194
; NO-VP-INLOOP-EMPTY:
199
195
; NO-VP-INLOOP-NEXT: scalar.ph:
0 commit comments