This is an archive of the discontinued LLVM Phabricator instance.

[SimplifyCFG] ReduceSwitchRange: use the smallest result type possible.
AbandonedPublic

Authored by shawnl on May 12 2019, 4:54 PM.

Details

Reviewers
jmolloy
Summary

I am trying to move towards much more space-efficient switch statements, using popcnt, as described in PR39013. This is the patch 6 towards that goal, and a continuation of D60673.

Diff Detail

Event Timeline

shawnl created this revision.May 12 2019, 4:54 PM
Herald added a project: Restricted Project. · View Herald TranscriptMay 12 2019, 4:54 PM

The backends seem to be able to handle "illegal types", even if they couldn't before for this.

I am going to drop this as this optimization really belongs in visitGEP, same with the bitmask code in this file.

shawnl abandoned this revision.May 13 2019, 11:23 AM