This is an archive of the discontinued LLVM Phabricator instance.

[IRCE][NFC] Better get SCEV for 1 in calculateSubRanges
ClosedPublic

Authored by mkazantsev on Jun 27 2017, 2:01 AM.

Details

Summary

A slightly more efficient way to get constant, we avoid resolving in getSCEV and excessive
invocations, and we don't create a ConstantInt if 'true' branch is taken.

Diff Detail

Repository
rL LLVM

Event Timeline

mkazantsev created this revision.Jun 27 2017, 2:01 AM
skatkov accepted this revision.Jun 27 2017, 2:04 AM

LGTM

This revision is now accepted and ready to land.Jun 27 2017, 2:04 AM
mkazantsev edited the summary of this revision. (Show Details)Jun 27 2017, 2:23 AM
mkazantsev edited the summary of this revision. (Show Details)Jun 27 2017, 2:27 AM
This revision was automatically updated to reflect the committed changes.