Revert D153927 "Resubmit with fix: [NFC] Refactor MBB hotness/coldness into templated...
authorFangrui Song <i@maskray.me>
Wed, 28 Jun 2023 07:30:52 +0000 (00:30 -0700)
committerFangrui Song <i@maskray.me>
Wed, 28 Jun 2023 07:30:52 +0000 (00:30 -0700)
commit4bb3d0e5318ef6083596853daf59f0bdb4700d55
treee60d4cbab26b347188527660ae02530772fe3686
parent8d175b3577cb5ef0655a5d83bd3e277fde5c8852
Revert D153927 "Resubmit with fix: [NFC] Refactor MBB hotness/coldness into templated PSI functions."

This reverts commit 4d8cf2ae6804e0d3f2b668dbec0f5c1983358328.

There is a library layering violation. LLVMAnalysis cannot depend on LLVMCodeGen.

```
llvm/include/llvm/Analysis/ProfileSummaryInfo.h:19:10: fatal error: 'llvm/CodeGen/MachineFunction.h' file not found
   19 | #include "llvm/CodeGen/MachineFunction.h"
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
llvm/include/llvm/Analysis/ProfileSummaryInfo.h
llvm/include/llvm/Transforms/Utils/SizeOpts.h
llvm/lib/Analysis/ProfileSummaryInfo.cpp
llvm/lib/CodeGen/MachineSizeOpts.cpp
llvm/lib/Transforms/Utils/SizeOpts.cpp