Skip to content

Commit 4ac7fce

Browse files
committed
Fix format and test
1 parent 5672eae commit 4ac7fce

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

llvm/lib/CodeGen/LiveVariables.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ void LiveVariables::HandlePhysRegUse(Register Reg, MachineInstr &MI) {
253253
// If LastPartialDef is NULL, it must be using a livein register.
254254
if (LastPartialDef) {
255255
LastPartialDef->addOperand(
256-
MachineOperand::CreateReg(Reg, true /*IsDef*/, true /*IsImp*/));
256+
MachineOperand::CreateReg(Reg, true /*IsDef*/, true /*IsImp*/));
257257
}
258258
} else if (LastDef && !PhysRegUse[Reg.id()] &&
259259
!LastDef->findRegisterDefOperand(Reg, /*TRI=*/nullptr))

llvm/test/CodeGen/AMDGPU/fncall-implicitdef.ll

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@ define amdgpu_ps <4 x float> @caller(ptr %ptr) {
55
; CHECK-LABEL: caller:
66
; CHECK: ; %bb.0:
77
; CHECK-NEXT: flat_load_dword v1, v[0:1]
8-
; CHECK-NEXT: s_mov_b32 s5, fn@abs32@hi
9-
; CHECK-NEXT: s_mov_b32 s4, fn@abs32@lo
10-
; CHECK-NEXT: s_mov_b64 s[8:9], 0
118
; CHECK-NEXT: s_mov_b32 s0, 0
129
; CHECK-NEXT: s_mov_b32 s1, 0
1310
; CHECK-NEXT: s_mov_b32 s2, 0
14-
; CHECK-NEXT: s_mov_b32 s3, 0
11+
; CHECK-NEXT: s_mov_b32 s5, fn@abs32@hi
12+
; CHECK-NEXT: s_mov_b32 s4, fn@abs32@lo
13+
; CHECK-NEXT: s_mov_b64 s[8:9], 0
1514
; CHECK-NEXT: v_mov_b32_e32 v0, 0
15+
; CHECK-NEXT: s_mov_b32 s3, 0
1616
; CHECK-NEXT: v_mov_b32_e32 v2, 0
1717
; CHECK-NEXT: s_mov_b32 s32, 0
1818
; CHECK-NEXT: s_swappc_b64 s[30:31], s[4:5]

0 commit comments

Comments
 (0)