This is an archive of the discontinued LLVM Phabricator instance.

[SCEV] Factor out getLoopUseLists
ClosedPublic

Authored by skatkov on Feb 20 2018, 2:17 AM.

Details

Summary

The patch introduce the new function in ScalarEvolution to get
all loops used in specified SCEV.

This is a preparation for re-writing isKnownPredicate utility as
described in https://reviews.llvm.org/D42417.

Diff Detail

Repository
rL LLVM

Event Timeline

skatkov created this revision.Feb 20 2018, 2:17 AM
sanjoy accepted this revision.Feb 25 2018, 1:07 PM
sanjoy added inline comments.
include/llvm/Analysis/ScalarEvolution.h
1768 ↗(On Diff #135024)

s/getLoopUseLists/getUsedLoops/

Let's also be a bit more specific here -- a loop is considered "used" by an expression if it contains an add rec on said loop.

This revision is now accepted and ready to land.Feb 25 2018, 1:07 PM
This revision was automatically updated to reflect the committed changes.