Add optimization bisect opt-in calls for SystemZ passes

Differential Revision: http://reviews.llvm.org/D19562

llvm-svn: 267636
This commit is contained in:
Andrew Kaylor 2016-04-26 23:49:41 +00:00
parent 87b10dd7b3
commit d9974cc913
3 changed files with 9 additions and 0 deletions

View File

@ -500,6 +500,9 @@ bool SystemZElimCompare::processBlock(MachineBasicBlock &MBB) {
} }
bool SystemZElimCompare::runOnMachineFunction(MachineFunction &F) { bool SystemZElimCompare::runOnMachineFunction(MachineFunction &F) {
if (skipFunction(*F.getFunction()))
return false;
TII = static_cast<const SystemZInstrInfo *>(F.getSubtarget().getInstrInfo()); TII = static_cast<const SystemZInstrInfo *>(F.getSubtarget().getInstrInfo());
TRI = &TII->getRegisterInfo(); TRI = &TII->getRegisterInfo();

View File

@ -64,6 +64,9 @@ void SystemZLDCleanup::getAnalysisUsage(AnalysisUsage &AU) const {
} }
bool SystemZLDCleanup::runOnMachineFunction(MachineFunction &F) { bool SystemZLDCleanup::runOnMachineFunction(MachineFunction &F) {
if (skipFunction(*F.getFunction()))
return false;
TII = static_cast<const SystemZInstrInfo *>(F.getSubtarget().getInstrInfo()); TII = static_cast<const SystemZInstrInfo *>(F.getSubtarget().getInstrInfo());
MF = &F; MF = &F;

View File

@ -268,6 +268,9 @@ bool SystemZShortenInst::processBlock(MachineBasicBlock &MBB) {
} }
bool SystemZShortenInst::runOnMachineFunction(MachineFunction &F) { bool SystemZShortenInst::runOnMachineFunction(MachineFunction &F) {
if (skipFunction(*F.getFunction()))
return false;
const SystemZSubtarget &ST = F.getSubtarget<SystemZSubtarget>(); const SystemZSubtarget &ST = F.getSubtarget<SystemZSubtarget>();
TII = ST.getInstrInfo(); TII = ST.getInstrInfo();
TRI = ST.getRegisterInfo(); TRI = ST.getRegisterInfo();