[llvm] [CodeGen] Use BasicBlock numbers to map to MBBs (PR #101883)
Alexis Engelke via llvm-commits
llvm-commits at lists.llvm.org
Sun Aug 4 08:21:11 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()];
+ }
----------------
aengelke wrote:
#101893
https://github.com/llvm/llvm-project/pull/101883
More information about the llvm-commits
mailing list