This is an archive of the discontinued LLVM Phabricator instance.

[LoopDataPrefetch] Add missed LoopSimplify dependence for prefetch pass
ClosedPublic

Authored by wwei on Aug 20 2021, 12:22 AM.

Details

Summary

SCEVExpander::expandCodeFor may expand add recurrences for loop with a preheader, so we should make LoopDataPrefetch dependent on LoopSimplify.

This patch will try to fix : https://bugs.llvm.org/show_bug.cgi?id=43784

Diff Detail

Event Timeline

wwei created this revision.Aug 20 2021, 12:22 AM
wwei requested review of this revision.Aug 20 2021, 12:22 AM
Meinersbur accepted this revision.Aug 23 2021, 4:45 PM

Interestingly, LoopDataPrefetchLegacyPass is a FunctionPass. If it was a LoopPass, LoopSimplify would have run implicitly.

LGTM.

This revision is now accepted and ready to land.Aug 23 2021, 4:45 PM
This revision was landed with ongoing or failed builds.Aug 26 2021, 6:18 AM
This revision was automatically updated to reflect the committed changes.