[PATCH] D128583: CodeGen: Remove AliasAnalysis from regalloc

Mircea Trofin via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat Jun 25 07:13:20 PDT 2022


mtrofin added inline comments.


================
Comment at: llvm/lib/CodeGen/MLRegallocEvictAdvisor.cpp:890
 bool RegAllocScoring::runOnMachineFunction(MachineFunction &MF) {
+  AA = &getAnalysis<AAResultsWrapperPass>().getAAResults();
+
----------------
I think this isn't needed here.


================
Comment at: llvm/lib/CodeGen/MLRegallocEvictAdvisor.cpp:898
               MF, getAnalysis<MachineBlockFrequencyInfo>(),
               getAnalysis<AAResultsWrapperPass>().getAAResults())
               .getScore()));
----------------
this can be removed, since calculateRegAllocScore now doesn't need the AA


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D128583/new/

https://reviews.llvm.org/D128583



More information about the llvm-commits mailing list