[llvm-commits] [Patch] Don't do switch-to-lookup table unless TTI is present
Hans Wennborg
hans at chromium.org
Wed Nov 7 11:01:55 PST 2012
Hi all,
Currently, SimplifyCFG does the switch-to-lookup table transformation
unless there is TargetTransformInfo that disables it.
Andrew pointed out [1] that this might not be desirable.
The attached patch makes the transformation only run when there is TTI
present that enables it.
Please take a look!
- Hans
[1]. http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20121105/155311.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: switch_table_default_off.patch
Type: application/octet-stream
Size: 57821 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20121107/acd57f51/attachment.obj>
More information about the llvm-commits
mailing list