[llvm] [CodeGen] Use BasicBlock numbers to map to MBBs (PR #101883)

Alexis Engelke via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 6 00:29:57 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
----------------
aengelke wrote:

I removed renumbering from this patch after all. The correct place would be the eliminate-unreachable-blocks pass, which will get a renumbering later.

https://github.com/llvm/llvm-project/pull/101883


More information about the llvm-commits mailing list