This is an archive of the discontinued LLVM Phabricator instance.

[IRCE][NFC] Make range check's End a non-null SCEV
ClosedPublic

Authored by mkazantsev on Nov 3 2017, 3:28 AM.

Details

Summary

Currently, IRC contains Begin and Step as SCEVs and End as value.
Aside from that, End can also be nullptr which can be later conditionally
converted into a non-null SCEV.

To make this logic more transparent, this patch makes End a SCEV and
calculates it early, so that it is never a null.

Diff Detail

Repository
rL LLVM

Event Timeline

mkazantsev edited the summary of this revision. (Show Details)Nov 3 2017, 3:30 AM
mkazantsev retitled this revision from [IRCE][NFC] Make range checl's End a non-null SCEV to [IRCE][NFC] Make range check's End a non-null SCEV.Nov 3 2017, 3:42 AM
reames accepted this revision.Nov 7 2017, 3:46 PM

LGTM once dependent revisions have been in tree for a couple of days.

This revision is now accepted and ready to land.Nov 7 2017, 3:46 PM
This revision was automatically updated to reflect the committed changes.