Skip to content

Commit e295a9f

Browse files
committed
Address some super nitpicky nits
1 parent 6d45baf commit e295a9f

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

llvm/test/CodeGen/AArch64/aarch64-dup-ext-crash.ll

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ target triple = "aarch64-unknown-linux-gnu"
99
; here, only that this case no longer causes said crash.
1010
define dso_local i32 @dupext_crashtest(i32 %e) local_unnamed_addr {
1111
; CHECK-LABEL: dupext_crashtest:
12-
; CHECK: // %bb.0: // %for.body.lr.ph
12+
; CHECK: // %bb.0: // %entry
1313
; CHECK-NEXT: dup v0.2s, w0
1414
; CHECK-NEXT: .LBB0_1: // %vector.body
1515
; CHECK-NEXT: // =>This Inner Loop Header: Depth=1
@@ -18,7 +18,7 @@ define dso_local i32 @dupext_crashtest(i32 %e) local_unnamed_addr {
1818
; CHECK-NEXT: xtn v1.2s, v1.2d
1919
; CHECK-NEXT: str d1, [x8]
2020
; CHECK-NEXT: b .LBB0_1
21-
for.body.lr.ph:
21+
entry:
2222
%conv314 = zext i32 %e to i64
2323
br label %vector.memcheck
2424

@@ -44,7 +44,7 @@ vector.body: ; preds = %vector.body, %vecto
4444
; This test got stuck in a loop hoisting the and to the load, and sinking it back to the mull
4545
define i32 @dup_and_load(ptr %p, i1 %c) {
4646
; CHECK-LABEL: dup_and_load:
47-
; CHECK: // %bb.0: // %for.body.lr.ph
47+
; CHECK: // %bb.0: // %entry
4848
; CHECK-NEXT: mov x8, x0
4949
; CHECK-NEXT: ldrb w0, [x0]
5050
; CHECK-NEXT: tbz w1, #0, .LBB1_3
@@ -63,13 +63,13 @@ define i32 @dup_and_load(ptr %p, i1 %c) {
6363
; CHECK-NEXT: b.lt .LBB1_2
6464
; CHECK-NEXT: .LBB1_3: // %end
6565
; CHECK-NEXT: ret
66-
for.body.lr.ph:
66+
entry:
6767
%l = load i32, ptr %p
68-
%conv314 = and i32 %l, 255
68+
%and255 = and i32 %l, 255
6969
br i1 %c, label %ph, label %end
7070

7171
ph:
72-
%broadcast.splatinsert = insertelement <8 x i32> poison, i32 %conv314, i32 0
72+
%broadcast.splatinsert = insertelement <8 x i32> poison, i32 %and255, i32 0
7373
%broadcast.splat = shufflevector <8 x i32> %broadcast.splatinsert, <8 x i32> poison, <8 x i32> zeroinitializer
7474
br label %vector.body
7575

@@ -84,5 +84,5 @@ vector.body: ; preds = %vector.body, %vecto
8484
br i1 %e, label %vector.body, label %end
8585

8686
end:
87-
ret i32 %conv314
87+
ret i32 %and255
8888
}

0 commit comments

Comments
 (0)