[llvm] [CodeGen] Use BasicBlock numbers to map to MBBs (PR #101883)
Nikita Popov via llvm-commits
llvm-commits at lists.llvm.org
Sun Aug 4 06:53:11 PDT 2024
================
@@ -3832,7 +3832,8 @@ static bool checkForMustTailInVarArgFn(bool IsVarArg, const BasicBlock &BB) {
bool IRTranslator::runOnMachineFunction(MachineFunction &CurMF) {
MF = &CurMF;
- const Function &F = MF->getFunction();
+ Function &F = MF->getFunction();
+ F.renumberBlocks(); // renumber blocks for dense values
----------------
nikic wrote:
Well, I guess this will just get handled when actually enabling the use of IR BB numbers in DT.
https://github.com/llvm/llvm-project/pull/101883
More information about the llvm-commits
mailing list