Skip to content

Commit 3532651

Browse files
committed
RegAllocGreedy: Add braces
1 parent 35c90bf commit 3532651

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

llvm/lib/CodeGen/RegAllocGreedy.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2454,7 +2454,7 @@ MCRegister RAGreedy::selectOrSplitImpl(const LiveInterval &VirtReg,
24542454
// Try to evict a less worthy live range, but only for ranges from the primary
24552455
// queue. The RS_Split ranges already failed to do this, and they should not
24562456
// get a second chance until they have been split.
2457-
if (Stage != RS_Split)
2457+
if (Stage != RS_Split) {
24582458
if (MCRegister PhysReg =
24592459
tryEvict(VirtReg, Order, NewVRegs, CostPerUseLimit,
24602460
FixedRegisters)) {
@@ -2468,6 +2468,7 @@ MCRegister RAGreedy::selectOrSplitImpl(const LiveInterval &VirtReg,
24682468
SetOfBrokenHints.insert(&VirtReg);
24692469
return PhysReg;
24702470
}
2471+
}
24712472

24722473
assert((NewVRegs.empty() || Depth) && "Cannot append to existing NewVRegs");
24732474

0 commit comments

Comments
 (0)