This is an archive of the discontinued LLVM Phabricator instance.

[SCEV] Fix the movement of insertion point in expander. PR35406.
ClosedPublic

Authored by skatkov on Dec 14 2017, 3:25 AM.

Details

Summary

We cannot move the insertion point to header if SCEV contains div/rem
operations due to they may go over check for zero denominator.

Diff Detail

Repository
rL LLVM

Event Timeline

skatkov created this revision.Dec 14 2017, 3:25 AM
sebpop accepted this revision.Dec 14 2017, 5:31 PM

LGTM

lib/Analysis/ScalarEvolutionExpander.cpp
1739 ↗(On Diff #126923)

or SCEVSDivExpr.

This revision is now accepted and ready to land.Dec 14 2017, 5:31 PM
skatkov added inline comments.Dec 14 2017, 7:43 PM
lib/Analysis/ScalarEvolutionExpander.cpp
1739 ↗(On Diff #126923)

There is no SCEVSDivExpr expression.

This revision was automatically updated to reflect the committed changes.