[PATCH] D153927: Resubmit: [NFC] Refactor MBB hotness/coldness into templated PSI functions

Haojian Wu via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jun 28 00:33:38 PDT 2023


hokein added inline comments.


================
Comment at: llvm/include/llvm/Analysis/ProfileSummaryInfo.h:19
+#include "llvm/Analysis/BlockFrequencyInfo.h"
+#include "llvm/CodeGen/MachineFunction.h"
+#include "llvm/IR/Function.h"
----------------
This seems to introduce a layering violation. 

After this patch, the llvm::Analysis target now depends on the llvm::CodeGen target, but llvm::CodeGen already depends on llvm::Analysis.

One fix is to move the moving the full specialization for the MachineFunction to the CodeGen target (MachineSizeOpts.cpp)


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D153927



More information about the llvm-commits mailing list