[llvm-commits] [Patch] Don't do switch-to-lookup table unless TTI is present
Andrew Trick
atrick at apple.com
Wed Nov 7 11:07:25 PST 2012
On Nov 7, 2012, at 11:01 AM, Hans Wennborg <hans at chromium.org> wrote:
> 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!
LGTM.
Thanks Hans. I think this is a better policy given that we can't undo the transformation.
-Andy
More information about the llvm-commits
mailing list