This is an archive of the discontinued LLVM Phabricator instance.

[IRCE] Do not process empty safe ranges
ClosedPublic

Authored by mkazantsev on Oct 5 2017, 2:33 AM.

Details

Summary

IRCE should not apply when the safe iteration range is proved to be empty.
In this case we do unneeded job creating pre/post loops and then never
go to the main loop.

This patch makes IRCE not apply to empty safe ranges, adds test for this
situation and also modifies one of existing tests where it used to happen
slightly.

Diff Detail

Repository
rL LLVM

Event Timeline

mkazantsev created this revision.Oct 5 2017, 2:33 AM
mkazantsev edited the summary of this revision. (Show Details)
anna accepted this revision.Oct 10 2017, 6:35 AM

LGTM!

This revision is now accepted and ready to land.Oct 10 2017, 6:35 AM
This revision was automatically updated to reflect the committed changes.