llvm-6502/include/llvm/Transforms/Utils
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
..
AddrModeMatcher.h Refactor the AddrMode class out of TLI to its own header file. 2012-10-08 23:06:34 +00:00
BasicBlockUtils.h Move SplitBlockAndInsertIfThen to BasicBlockUtils. 2012-10-19 10:48:31 +00:00
BuildLibCalls.h Move TargetData to DataLayout. 2012-10-08 16:38:25 +00:00
BypassSlowDivision.h This patch corrects commit 165126 by using an integer bit width instead of 2012-10-04 21:33:40 +00:00
Cloning.h Move TargetData to DataLayout. 2012-10-08 16:38:25 +00:00
CmpInstAnalysis.h
CodeExtractor.h
IntegerDivision.h Expansions for u/srem, using the udiv expansion. More unit tests for udiv and u/srem. 2012-09-26 01:55:01 +00:00
Local.h Use TargetTransformInfo to control switch-to-lookup table transformation 2012-10-30 11:23:25 +00:00
ModuleUtils.h
PromoteMemToReg.h
SimplifyIndVar.h Remove unused declaration 2012-09-11 00:39:12 +00:00
SimplifyLibCalls.h Implement new LibCallSimplifier class 2012-10-13 16:45:24 +00:00
SSAUpdater.h Mark unimplemented copy constructors and copy assignment operators as LLVM_DELETED_FUNCTION. 2012-09-17 07:16:40 +00:00
SSAUpdaterImpl.h
UnifyFunctionExitNodes.h
UnrollLoop.h
ValueMapper.h Rename virtual table anchors from Anchor() to anchor() for consistency with the rest of the tree. 2012-09-26 06:36:36 +00:00