[llvm] [CodeGen] Use optimized domtree for MachineFunction (PR #102107)

Alexis Engelke via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 6 01:48:33 PDT 2024


================
@@ -293,6 +293,10 @@ class LLVM_EXTERNAL_VISIBILITY MachineFunction {
   // numbered and this vector keeps track of the mapping from ID's to MBB's.
   std::vector<MachineBasicBlock*> MBBNumbering;
 
+  // MBBNumbering epoch, incremented after renumbering to detect use of old
+  // block numbers.
+  unsigned MBBNumberingEpoch;
----------------
aengelke wrote:

Good catch!

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


More information about the llvm-commits mailing list