@@ -63,11 +63,10 @@ define i32 @reduction(ptr %a, i64 %n, i32 %start) {
6363; IF-EVL-OUTLOOP-EMPTY:
6464; IF-EVL-OUTLOOP-NEXT: middle.block:
6565; 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]]>
6766; IF-EVL-OUTLOOP-NEXT: Successor(s): ir-bb<for.end>
6867; IF-EVL-OUTLOOP-EMPTY:
6968; 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)
7170; IF-EVL-OUTLOOP-NEXT: No successors
7271;
7372
@@ -103,11 +102,10 @@ define i32 @reduction(ptr %a, i64 %n, i32 %start) {
103102; IF-EVL-INLOOP-EMPTY:
104103; IF-EVL-INLOOP-NEXT: middle.block:
105104; 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]]>
107105; IF-EVL-INLOOP-NEXT: Successor(s): ir-bb<for.end>
108106; IF-EVL-INLOOP-EMPTY:
109107; 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)
111109; IF-EVL-INLOOP-NEXT: No successors
112110;
113111
@@ -138,13 +136,12 @@ define i32 @reduction(ptr %a, i64 %n, i32 %start) {
138136; NO-VP-OUTLOOP-EMPTY:
139137; NO-VP-OUTLOOP-NEXT: middle.block:
140138; 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]]>
142139; NO-VP-OUTLOOP-NEXT: EMIT vp<[[BOC:%.+]]> = icmp eq ir<%n>, vp<[[VTC]]>
143140; NO-VP-OUTLOOP-NEXT: EMIT branch-on-cond vp<[[BOC]]>
144141; NO-VP-OUTLOOP-NEXT: Successor(s): ir-bb<for.end>, scalar.ph
145142; NO-VP-OUTLOOP-EMPTY:
146143; 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)
148145; NO-VP-OUTLOOP-NEXT: No successors
149146; NO-VP-OUTLOOP-EMPTY:
150147; NO-VP-OUTLOOP-NEXT: scalar.ph:
@@ -187,13 +184,12 @@ define i32 @reduction(ptr %a, i64 %n, i32 %start) {
187184; NO-VP-INLOOP-EMPTY:
188185; NO-VP-INLOOP-NEXT: middle.block:
189186; 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]]>
191187; NO-VP-INLOOP-NEXT: EMIT vp<[[BOC:%.+]]> = icmp eq ir<%n>, vp<[[VTC]]>
192188; NO-VP-INLOOP-NEXT: EMIT branch-on-cond vp<[[BOC]]>
193189; NO-VP-INLOOP-NEXT: Successor(s): ir-bb<for.end>, scalar.ph
194190; NO-VP-INLOOP-EMPTY:
195191; 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)
197193; NO-VP-INLOOP-NEXT: No successors
198194; NO-VP-INLOOP-EMPTY:
199195; NO-VP-INLOOP-NEXT: scalar.ph:
0 commit comments