This is an archive of the discontinued LLVM Phabricator instance.

[IndVarSimplify] Teach calculatePostIncRange to take guards into account
ClosedPublic

Authored by apilipenko on Oct 18 2016, 11:11 AM.

Diff Detail

Repository
rL LLVM

Event Timeline

apilipenko retitled this revision from to [IndVarSimplify] Teach calculatePostIncRange to take guards into account.
apilipenko updated this object.
apilipenko added reviewers: sanjoy, reames.
apilipenko added a subscriber: llvm-commits.
sanjoy accepted this revision.Oct 18 2016, 2:35 PM
sanjoy edited edge metadata.

lgtm with nits inline

lib/Transforms/Scalar/IndVarSimplify.cpp
890 ↗(On Diff #75041)

Add a one-liner here on what this is for.

1610 ↗(On Diff #75041)

Can you use make_range here?

test/Transforms/IndVarSimplify/post-inc-range.ll
152 ↗(On Diff #75041)

Can you also add a test case where you've not broken the block? That is, the loop has only one basic block?

This revision is now accepted and ready to land.Oct 18 2016, 2:35 PM
This revision was automatically updated to reflect the committed changes.