This is an archive of the discontinued LLVM Phabricator instance.

SCEV: Don't assert about non-SCEV-able value in isSCEVExprNeverPoison() (PR28932)
ClosedPublic

Authored by hans on Aug 16 2016, 5:18 PM.

Diff Detail

Repository
rL LLVM

Event Timeline

hans updated this revision to Diff 68292.Aug 16 2016, 5:18 PM
hans retitled this revision from to SCEV: Don't assert about non-SCEV-able value in isSCEVExprNeverPoison() (PR28932).
hans updated this object.
hans added a reviewer: sanjoy.
hans added subscribers: sebpop, llvm-commits.
hans updated this revision to Diff 68438.Aug 17 2016, 3:34 PM

Fix comment.

sanjoy accepted this revision.Aug 17 2016, 3:41 PM
sanjoy edited edge metadata.

The bailout lgtm for now. Can you also add a TODO stating that we can do better here in some cases?

lib/Analysis/ScalarEvolution.cpp
4869 ↗(On Diff #68438)

Add a one-liner here that I could be an extractvalue from a call to an overflow intrinsic, since it is somewhat non-obvious why you'd get a non-SCEVable value here.

This revision is now accepted and ready to land.Aug 17 2016, 3:41 PM
This revision was automatically updated to reflect the committed changes.
hans marked an inline comment as done.