This is an archive of the discontinued LLVM Phabricator instance.

[SCEV][NFC] Strengthen safety assert in SCEV expander
AbandonedPublic

Authored by mkazantsev on Oct 24 2017, 5:02 AM.

Details

Reviewers
sanjoy
anna
reames
Summary

This patch enhances assert that checks that it is safe to expand a particular SCEV
in SCEVExpander with one more condition: it checks that we do not try to expand
something that is not available in the block of insertion point. For example, that we
don't try to expand a Phi to its loop's preheader.

Diff Detail