Changeset View
Changeset View
Standalone View
Standalone View
llvm/lib/Target/SystemZ/SystemZTargetTransformInfo.cpp
Show First 20 Lines • Show All 298 Lines • ▼ Show 20 Lines | bool SystemZTTIImpl::isLSRCostLess(TargetTransformInfo::LSRCost &C1, | ||||
return std::tie(C1.Insns, C1.NumRegs, C1.AddRecCost, | return std::tie(C1.Insns, C1.NumRegs, C1.AddRecCost, | ||||
C1.NumIVMuls, C1.NumBaseAdds, | C1.NumIVMuls, C1.NumBaseAdds, | ||||
C1.ScaleCost, C1.SetupCost) < | C1.ScaleCost, C1.SetupCost) < | ||||
std::tie(C2.Insns, C2.NumRegs, C2.AddRecCost, | std::tie(C2.Insns, C2.NumRegs, C2.AddRecCost, | ||||
C2.NumIVMuls, C2.NumBaseAdds, | C2.NumIVMuls, C2.NumBaseAdds, | ||||
C2.ScaleCost, C2.SetupCost); | C2.ScaleCost, C2.SetupCost); | ||||
} | } | ||||
unsigned SystemZTTIImpl::getNumberOfRegisters(bool Vector) { | unsigned SystemZTTIImpl::getNumberOfRegisters(unsigned ClassID) const { | ||||
bool Vector = (ClassID == 1); | |||||
if (!Vector) | if (!Vector) | ||||
// Discount the stack pointer. Also leave out %r0, since it can't | // Discount the stack pointer. Also leave out %r0, since it can't | ||||
// be used in an address. | // be used in an address. | ||||
return 14; | return 14; | ||||
if (ST->hasVector()) | if (ST->hasVector()) | ||||
return 32; | return 32; | ||||
return 0; | return 0; | ||||
} | } | ||||
▲ Show 20 Lines • Show All 831 Lines • Show Last 20 Lines |