Skip to content

Commit

Permalink
Add optimization bisect opt-in calls for SystemZ passes
Browse files Browse the repository at this point in the history
Differential Revision: http://reviews.llvm.org/D19562

llvm-svn: 267636
  • Loading branch information
andykaylor committed Apr 26, 2016
1 parent 87b10dd commit d9974cc
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions llvm/lib/Target/SystemZ/SystemZElimCompare.cpp
Expand Up @@ -500,6 +500,9 @@ bool SystemZElimCompare::processBlock(MachineBasicBlock &MBB) {
}

bool SystemZElimCompare::runOnMachineFunction(MachineFunction &F) {
if (skipFunction(*F.getFunction()))
return false;

TII = static_cast<const SystemZInstrInfo *>(F.getSubtarget().getInstrInfo());
TRI = &TII->getRegisterInfo();

Expand Down
3 changes: 3 additions & 0 deletions llvm/lib/Target/SystemZ/SystemZLDCleanup.cpp
Expand Up @@ -64,6 +64,9 @@ void SystemZLDCleanup::getAnalysisUsage(AnalysisUsage &AU) const {
}

bool SystemZLDCleanup::runOnMachineFunction(MachineFunction &F) {
if (skipFunction(*F.getFunction()))
return false;

TII = static_cast<const SystemZInstrInfo *>(F.getSubtarget().getInstrInfo());
MF = &F;

Expand Down
3 changes: 3 additions & 0 deletions llvm/lib/Target/SystemZ/SystemZShortenInst.cpp
Expand Up @@ -268,6 +268,9 @@ bool SystemZShortenInst::processBlock(MachineBasicBlock &MBB) {
}

bool SystemZShortenInst::runOnMachineFunction(MachineFunction &F) {
if (skipFunction(*F.getFunction()))
return false;

const SystemZSubtarget &ST = F.getSubtarget<SystemZSubtarget>();
TII = ST.getInstrInfo();
TRI = ST.getRegisterInfo();
Expand Down

0 comments on commit d9974cc

Please sign in to comment.