This is an archive of the discontinued LLVM Phabricator instance.

[IndVars] Add an option to be able to disable LFTR
ClosedPublic

Authored by skatkov on Jun 7 2017, 12:20 AM.

Details

Summary

This change adds an option disable-lftr to be able to disable Linear Function Test Replace optimization.
By default option is off so current behavior is not changed.

Diff Detail

Repository
rL LLVM

Event Timeline

skatkov created this revision.Jun 7 2017, 12:20 AM
sanjoy accepted this revision.Jun 7 2017, 11:59 AM

This LGTM.

If possible, please add a small test case.

This revision is now accepted and ready to land.Jun 7 2017, 11:59 AM
skatkov updated this revision to Diff 101868.Jun 8 2017, 1:11 AM

Sanjoy, is test ok?

This revision was automatically updated to reflect the committed changes.