llvm-6502/include/llvm/Transforms
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
..
IPO Rename the BB-vectorize flag to match the dragonegg name 2012-10-29 18:01:14 +00:00
Utils Use TargetTransformInfo to control switch-to-lookup table transformation 2012-10-30 11:23:25 +00:00
Instrumentation.h [asan] make AddressSanitizer to be a FunctionPass instead of ModulePass. This will simplify chaining other FunctionPasses with asan. Also some minor cleanup 2012-10-15 14:20:06 +00:00
IPO.h Change the internalize pass to internalize all symbols when given an empty 2012-10-26 18:47:48 +00:00
Scalar.h revert r166264 because the LTO build is still failing 2012-10-19 21:28:43 +00:00
Vectorize.h Add a loop vectorizer. 2012-10-17 18:25:06 +00:00