This is an archive of the discontinued LLVM Phabricator instance.

Fix overconfident assert in ScalarEvolution::isImpliedViaMerge
ClosedPublic

Authored by roman.shirokiy on Jun 29 2018, 4:31 AM.

Details

Summary

We can have AddRec with loops having many predecessors. This changes an assert to an early return.

Diff Detail

Repository
rL LLVM

Event Timeline

roman.shirokiy created this revision.Jun 29 2018, 4:31 AM
This revision is now accepted and ready to land.Jun 29 2018, 4:34 AM
mkazantsev added inline comments.Jun 29 2018, 4:34 AM
test/Analysis/ScalarEvolution/merge-add-rec-many-inputs.ll
1 ↗(On Diff #153469)

-S is not needed

This revision was automatically updated to reflect the committed changes.