Skip to content

Commit 7c51946

Browse files
committed
fix formatting
1 parent 9dda75e commit 7c51946

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

llvm/lib/Target/AVR/AVRTargetTransformInfo.cpp

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,14 @@
1212
using namespace llvm;
1313

1414
bool AVRTTIImpl::isLSRCostLess(const TargetTransformInfo::LSRCost &C1,
15-
const TargetTransformInfo::LSRCost &C2) const {
15+
const TargetTransformInfo::LSRCost &C2) const {
1616
// AVR specific here are "instruction number 1st priority".
1717
// If we need to emit adds inside the loop to add up base registers, then
1818
// we need at least one extra temporary register.
1919
unsigned C1NumRegs = C1.NumRegs + (C1.NumBaseAdds != 0);
2020
unsigned C2NumRegs = C2.NumRegs + (C2.NumBaseAdds != 0);
21-
return std::tie(C1.Insns, C1NumRegs, C1.AddRecCost,
22-
C1.NumIVMuls, C1.NumBaseAdds,
23-
C1.ScaleCost, C1.ImmCost, C1.SetupCost) <
24-
std::tie(C2.Insns, C2NumRegs, C2.AddRecCost,
25-
C2.NumIVMuls, C2.NumBaseAdds,
26-
C2.ScaleCost, C2.ImmCost, C2.SetupCost);
21+
return std::tie(C1.Insns, C1NumRegs, C1.AddRecCost, C1.NumIVMuls,
22+
C1.NumBaseAdds, C1.ScaleCost, C1.ImmCost, C1.SetupCost) <
23+
std::tie(C2.Insns, C2NumRegs, C2.AddRecCost, C2.NumIVMuls,
24+
C2.NumBaseAdds, C2.ScaleCost, C2.ImmCost, C2.SetupCost);
2725
}

0 commit comments

Comments
 (0)