[llvm-commits] [Patch] Don't do switch-to-lookup table unless TTI is present

Hans Wennborg hans at chromium.org
Wed Nov 7 13:46:57 PST 2012


On Wed, Nov 7, 2012 at 11:07 AM, Andrew Trick <atrick at apple.com> wrote:
>
> 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.

Landed r167552.

Thanks,
Hans



More information about the llvm-commits mailing list