llvm-6502/lib
Hans Wennborg 04d7d13d30 Use TargetTransformInfo to control switch-to-lookup table transformation
When the switch-to-lookup tables transform landed in SimplifyCFG, it
was pointed out that this could be inappropriate for some targets.
Since there was no way at the time for the pass to know anything about
the target, an awkward reverse-transform was added in CodeGenPrepare
that turned lookup tables back into switches for some targets.

This patch uses the new TargetTransformInfo to determine if a
switch should be transformed, and removes
CodeGenPrepare::ConvertLoadToSwitch.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@167011 91177308-0d34-0410-b5e6-96231b3b80d8
2012-10-30 11:23:25 +00:00
..
Analysis Remove code to saturate profile counts. 2012-10-29 17:27:39 +00:00
Archive Mark checkSignature const, and in turn stop casting away const from 2012-09-05 22:09:23 +00:00
AsmParser Special calling conventions for Intel OpenCL built-in library. 2012-10-24 14:46:16 +00:00
Bitcode Move the Attributes::Builder outside of the Attributes class and into its own class named AttrBuilder. No functionality change. 2012-10-15 20:35:56 +00:00
CodeGen In various places throughout the code generator, there were special 2012-10-29 18:35:49 +00:00
DebugInfo Use a typedef to reduce some typing and reformat code accordingly. 2012-10-16 23:46:25 +00:00
ExecutionEngine Make use of common-symbol alignment info in ELF loader. 2012-10-29 10:47:04 +00:00
Linker Move the "findUsedStructTypes" functionality outside of the Module class. 2012-08-03 00:30:35 +00:00
MC [ms-inline asm] Add support for the TYPE operator. 2012-10-26 18:04:20 +00:00
Object Add interface for querying object files for symbol values. 2012-10-29 10:47:00 +00:00
Support APFloat cleanup: Remove now unused "arithmeticOK" logic. 2012-10-29 18:18:44 +00:00
TableGen Remove exception handling usage from tblgen. 2012-10-25 20:33:17 +00:00
Target Use TargetTransformInfo to control switch-to-lookup table transformation 2012-10-30 11:23:25 +00:00
Transforms Use TargetTransformInfo to control switch-to-lookup table transformation 2012-10-30 11:23:25 +00:00
VMCore Remove a wrapper around getIntPtrType added to GVN by Hal in commit 166624 (the 2012-10-29 17:31:46 +00:00
CMakeLists.txt
LLVMBuild.txt
Makefile