[llvm] [CodeGen][NewPM] Port RegAllocEvictionAdvisor analysis to NPM (PR #117309)
Mircea Trofin via llvm-commits
llvm-commits at lists.llvm.org
Fri Nov 22 13:54:03 PST 2024
================
@@ -1061,9 +1062,10 @@ void CodeGenPassBuilder<Derived, TargetMachineT>::addMachineSSAOptimization(
template <typename Derived, typename TargetMachineT>
void CodeGenPassBuilder<Derived, TargetMachineT>::addTargetRegisterAllocator(
AddMachinePass &addPass, bool Optimized) const {
- if (Optimized)
+ if (Optimized) {
+ addPass(RequireAnalysis<RegAllocEvictionAdvisorAnalysis>());
----------------
mtrofin wrote:
this doesn't work (well, but the CI already pointed that out).
https://github.com/llvm/llvm-project/pull/117309
More information about the llvm-commits
mailing list