[Openmp-commits] [PATCH] D140982: [HardwareLoops] NewPM support
ChenZheng via Phabricator via Openmp-commits
openmp-commits at lists.llvm.org
Thu Jan 5 03:05:20 PST 2023
shchenz added inline comments.
================
Comment at: llvm/lib/CodeGen/HardwareLoops.cpp:284
+ PA.preserve<DominatorTreeAnalysis>();
+ PA.preserve<LoopAnalysis>();
+ return PA;
----------------
Seems this is an issue from LPM, but hardware loop insertion pass should preserve some other analysis as well, like `ScalarEvolutionAnalysis`, `BranchProbabilityAnalysis`, `DependenceAnalysis` and `MemorySSAAnalysis` (although there is no handling for it now, we may need pass it to `InsertPreheaderForLoop` if want to preserve this analysis)? I saw some other pass that calls `InsertPreheaderForLoop` but declare to preserve these analysis.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D140982/new/
https://reviews.llvm.org/D140982
More information about the Openmp-commits
mailing list