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
Paths
| Differential D108448
[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 TimelineComment Actions 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 Closed by commit rG99c4336374bf: [LoopDataPrefetch] Add missed LoopSimplify dependence for prefetch pass (authored by wwei). · Explain Why This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 368860 llvm/lib/Transforms/Scalar/LoopDataPrefetch.cpp
llvm/test/CodeGen/AArch64/O3-pipeline.ll
llvm/test/Transforms/LoopDataPrefetch/AArch64/pr43784.ll
|