[ARMConstantIslandPass] Remove dead code.

llvm-svn: 277283
This commit is contained in:
Davide Italiano 2016-07-30 22:07:15 +00:00
parent 6c64c2c86a
commit 3ebda7ed88
1 changed files with 0 additions and 20 deletions

View File

@ -235,7 +235,6 @@ namespace {
bool fixupConditionalBr(ImmBranch &Br);
bool fixupUnconditionalBr(ImmBranch &Br);
bool undoLRSpillRestore();
bool mayOptimizeThumb2Instruction(const MachineInstr *MI) const;
bool optimizeThumb2Instructions();
bool optimizeThumb2Branches();
bool reorderThumb2JumpTables();
@ -1699,25 +1698,6 @@ bool ARMConstantIslands::undoLRSpillRestore() {
return MadeChange;
}
// mayOptimizeThumb2Instruction - Returns true if optimizeThumb2Instructions
// below may shrink MI.
bool
ARMConstantIslands::mayOptimizeThumb2Instruction(const MachineInstr *MI) const {
switch(MI->getOpcode()) {
// optimizeThumb2Instructions.
case ARM::t2LEApcrel:
case ARM::t2LDRpci:
// optimizeThumb2Branches.
case ARM::t2B:
case ARM::t2Bcc:
case ARM::tBcc:
// optimizeThumb2JumpTables.
case ARM::t2BR_JT:
return true;
}
return false;
}
bool ARMConstantIslands::optimizeThumb2Instructions() {
bool MadeChange = false;