This is an archive of the discontinued LLVM Phabricator instance.

Refactor code computing switch instruction cost. NFC.
AbandonedPublic

Authored by eraman on Feb 17 2017, 11:37 AM.

Details

Reviewers
chandlerc

Diff Detail

Event Timeline

eraman created this revision.Feb 17 2017, 11:37 AM
chandlerc edited edge metadata.Feb 24 2017, 12:20 PM

There's nothing wrong with this code, but this is a refactoring that I think only makes sense in the context where you need it. As-is, it seems like unnecessarily more layers with no real benefit. Let's look at this in the end-state patch?