Skip to content

Commit a31fac8

Browse files
committed
[MachineBlockPlacement][X86] Address test comments
1 parent a4bb987 commit a31fac8

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

llvm/test/CodeGen/X86/code-align-loops.ll

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ exit: ; preds = %bb2, %bb3, %bb4
192192
; CHECK-LABEL: test5:
193193
; ALIGN: .p2align 6
194194
; ALIGN-NEXT: .LBB4_1: # %while.cond
195-
define dso_local i32 @test5(i32 %n) #0 {
195+
define i32 @test5(i32 %n) #0 {
196196
entry:
197197
%retval = alloca i32, align 4
198198
%n.addr = alloca i32, align 4
@@ -202,20 +202,20 @@ entry:
202202
br label %while.cond
203203

204204
while.cond: ; preds = %while.body, %entry
205-
%0 = load i32, ptr %i, align 4
206-
%1 = load i32, ptr %n.addr, align 4
207-
%cmp = icmp slt i32 %0, %1
205+
%i.val = load i32, ptr %i, align 4
206+
%n.val = load i32, ptr %n.addr, align 4
207+
%cmp = icmp slt i32 %i.val, %n.val
208208
br i1 %cmp, label %while.body, label %while.end
209209

210210
while.body: ; preds = %while.cond
211-
%2 = load i32, ptr %i, align 4
212-
%inc = add nsw i32 %2, 1
211+
%tmp = load i32, ptr %i, align 4
212+
%inc = add nsw i32 %tmp, 1
213213
store i32 %inc, ptr %i, align 4
214214
br label %while.cond, !llvm.loop !0
215215

216216
while.end: ; preds = %while.cond
217-
%3 = load i32, ptr %retval, align 4
218-
ret i32 %3
217+
%val = load i32, ptr %retval, align 4
218+
ret i32 %val
219219
}
220220

221221

0 commit comments

Comments
 (0)