[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:28 PDT 2024
================
@@ -212,6 +212,11 @@ class FunctionLoweringInfo {
return ValueMap.count(V);
}
+ MachineBasicBlock *getMBB(const BasicBlock *BB) const {
+ assert(BB->getNumber() < MBBMap.size() && "uninitialized MBBMap?");
+ return MBBMap[BB->getNumber()];
+ }
----------------
nikic wrote:
Can you please pre-commit the addition and use of this method as a separate NFC change?
https://github.com/llvm/llvm-project/pull/101883
More information about the llvm-commits
mailing list