This is an archive of the discontinued LLVM Phabricator instance.

[LoopAccesses] Make blockNeedsPredication static
ClosedPublic

Authored by anemet on Feb 16 2015, 2:19 PM.

Details

Summary

blockNeedsPredication is in LoopAccess in order to share it with the
vectorizer. It's a utility needed by LoopAccess not strictly provided
by it but it's a good place to share it. This makes the function static
so that it no longer required to create an LoopAccessInfo instance in
order to access it from LV.

This was actually causing problems because it would have required
creating LAI much earlier that LV::canVectorizeMemory().

This is part of the patchset that converts LoopAccessAnalysis into an
actual analysis pass.

Diff Detail

Event Timeline

anemet updated this revision to Diff 20052.Feb 16 2015, 2:19 PM
anemet retitled this revision from to [LoopAccesses] Make blockNeedsPredication static.
anemet updated this object.
anemet edited the test plan for this revision. (Show Details)
anemet added reviewers: hfinkel, aschwaighofer, nadav.
anemet added a subscriber: Unknown Object (MLST).
hfinkel accepted this revision.Feb 16 2015, 4:27 PM
hfinkel edited edge metadata.

LGTM.

This revision is now accepted and ready to land.Feb 16 2015, 4:27 PM
anemet closed this revision.Mar 1 2015, 9:41 PM

r229625