llvm-6502/lib
Hans Wennborg 93ba133906 CodeGenPrep: turn lookup tables into switches for some targets.
This is a follow-up from r163302, which added a transformation to
SimplifyCFG that turns some switches into loads from lookup tables.

It was pointed out that some targets, such as GPUs and deeply embedded
targets, might not find this appropriate, but SimplifyCFG doesn't have
enough information about the target to decide this.

This patch adds the reverse transformation to CodeGenPrep: it turns
loads from lookup tables back into switches for targets where we do not
build jump tables (assuming these are also the targets where lookup
tables are inappropriate).

Hopefully we will eventually get to have target information in
SimplifyCFG, and then this CodeGenPrep transformation can be removed.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@164206 91177308-0d34-0410-b5e6-96231b3b80d8
2012-09-19 07:48:16 +00:00
..
Analysis
Archive
AsmParser
Bitcode
CodeGen comment typo 2012-09-18 22:57:42 +00:00
DebugInfo Mark unimplemented copy constructors and copy assignment operators as LLVM_DELETED_FUNCTION. 2012-09-18 02:01:41 +00:00
ExecutionEngine Mark unimplemented copy constructors and copy assignment operators as LLVM_DELETED_FUNCTION. 2012-09-18 02:01:41 +00:00
Linker
MC Tidy up. Minor formatting. 2012-09-18 23:05:18 +00:00
Object Reverting r 160419. 2012-07-19 21:43:55 +00:00
Support
TableGen De-nest if's and fix mix-up 2012-09-19 02:14:59 +00:00
Target Remove code for setting the VEX L-bit as a function of operand size from the code emitters and the disassembler table builder. Fix a couple instructions that were still missing VEX_L. 2012-09-19 06:37:45 +00:00
Transforms CodeGenPrep: turn lookup tables into switches for some targets. 2012-09-19 07:48:16 +00:00
VMCore whitespace. 2012-09-19 06:24:00 +00:00
CMakeLists.txt
LLVMBuild.txt
Makefile