Optimize Thumb2 jumptable to use tbb / tbh when all the offsets fit in byte / halfword.
authorEvan Cheng <evan.cheng@apple.com>
Wed, 29 Jul 2009 02:18:14 +0000 (02:18 +0000)
committerEvan Cheng <evan.cheng@apple.com>
Wed, 29 Jul 2009 02:18:14 +0000 (02:18 +0000)
commitc6d70ae06358922d9db45496674dfa6dcf576296
treee5109af5b4775cf2bc3ecf239c2184ef09f36018
parentb9a68612e2f81f24f625e5eeeb3239817e6f8e61
Optimize Thumb2 jumptable to use tbb / tbh when all the offsets fit in byte / halfword.

llvm-svn: 77422
llvm/lib/Target/ARM/ARMConstantIslandPass.cpp
llvm/lib/Target/ARM/ARMISelLowering.cpp
llvm/lib/Target/ARM/ARMISelLowering.h
llvm/lib/Target/ARM/ARMInstrInfo.td
llvm/lib/Target/ARM/ARMInstrThumb2.td
llvm/lib/Target/ARM/AsmPrinter/ARMAsmPrinter.cpp
llvm/lib/Target/ARM/Thumb2InstrInfo.cpp
llvm/test/CodeGen/Thumb2/thumb2-tbb.ll [moved from llvm/test/CodeGen/Thumb2/thumb2-jtbl.ll with 97% similarity]
llvm/test/CodeGen/Thumb2/thumb2-tbh.ll [new file with mode: 0644]