Skip to content

Commit a578c76

Browse files
committed
clang-format
1 parent a44bb8d commit a578c76

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

llvm/lib/CodeGen/LiveVariables.cpp

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -215,8 +215,7 @@ void LiveVariables::HandleVirtRegDef(Register Reg, MachineInstr &MI) {
215215

216216
/// FindLastPartialDef - Return the last partial def of the specified register.
217217
/// Also returns the sub-registers that're defined by the instruction.
218-
MachineInstr *
219-
LiveVariables::FindLastPartialDef(Register Reg) {
218+
MachineInstr *LiveVariables::FindLastPartialDef(Register Reg) {
220219
unsigned LastDefDist = 0;
221220
MachineInstr *LastDef = nullptr;
222221
for (MCPhysReg SubReg : TRI->subregs(Reg)) {
@@ -254,14 +253,14 @@ void LiveVariables::HandlePhysRegUse(Register Reg, MachineInstr &MI) {
254253
MachineInstr *LastPartialDef = FindLastPartialDef(Reg);
255254
// If LastPartialDef is NULL, it must be using a livein register.
256255
if (LastPartialDef) {
257-
LastPartialDef->addOperand(MachineOperand::CreateReg(Reg, true/*IsDef*/,
258-
true/*IsImp*/));
256+
LastPartialDef->addOperand(
257+
MachineOperand::CreateReg(Reg, true/*IsDef*/, true/*IsImp*/));
259258
}
260259
} else if (LastDef && !PhysRegUse[Reg.id()] &&
261260
!LastDef->findRegisterDefOperand(Reg, /*TRI=*/nullptr))
262261
// Last def defines the super register, add an implicit def of reg.
263-
LastDef->addOperand(MachineOperand::CreateReg(Reg, true/*IsDef*/,
264-
true/*IsImp*/));
262+
LastDef->addOperand(MachineOperand::CreateReg(Reg, true /*IsDef*/,
263+
true /*IsImp*/));
265264

266265
// Remember this use.
267266
for (MCPhysReg SubReg : TRI->subregs_inclusive(Reg))

0 commit comments

Comments
 (0)