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)
commit5657c01949dca6c012ac60d242d1a8d2ffdf5603
treeecb9f93864eac57af9d445e4e0cb683472c5ab7f
parent794bfed25dd6a4282af204c8b4bfa76d7d4221d8
Optimize Thumb2 jumptable to use tbb / tbh when all the offsets fit in byte / halfword.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77422 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/ARM/ARMConstantIslandPass.cpp
lib/Target/ARM/ARMISelLowering.cpp
lib/Target/ARM/ARMISelLowering.h
lib/Target/ARM/ARMInstrInfo.td
lib/Target/ARM/ARMInstrThumb2.td
lib/Target/ARM/AsmPrinter/ARMAsmPrinter.cpp
lib/Target/ARM/Thumb2InstrInfo.cpp
test/CodeGen/Thumb2/thumb2-jtbl.ll [deleted file]
test/CodeGen/Thumb2/thumb2-tbb.ll [new file with mode: 0644]
test/CodeGen/Thumb2/thumb2-tbh.ll [new file with mode: 0644]