[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 05:54:27 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:
Is this safe? I think machine passes will preserve all the IR analyses, including DT, which may still get used by machine passes (e.g. through AA).
https://github.com/llvm/llvm-project/pull/101883
More information about the llvm-commits
mailing list