From: Davide Italiano Date: Sat, 30 Jul 2016 22:07:15 +0000 (+0000) Subject: [ARMConstantIslandPass] Remove dead code. X-Git-Tag: llvmorg-4.0.0-rc1~13732 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3ebda7ed88b4ad7528b57e2d751a9252b5b404a7;p=platform%2Fupstream%2Fllvm.git [ARMConstantIslandPass] Remove dead code. llvm-svn: 277283 --- diff --git a/llvm/lib/Target/ARM/ARMConstantIslandPass.cpp b/llvm/lib/Target/ARM/ARMConstantIslandPass.cpp index ab25b01..237ba30 100644 --- a/llvm/lib/Target/ARM/ARMConstantIslandPass.cpp +++ b/llvm/lib/Target/ARM/ARMConstantIslandPass.cpp @@ -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;