[llvm] [CodeGen] Stop scanning RegMasks after reaching their intersection (PR #217552)

Liu Ke via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 26 20:20:39 PDT 2026


================
@@ -94,6 +94,10 @@ class LiveIntervals {
   /// block.
   SmallVector<std::pair<unsigned, unsigned>, 8> RegMaskBlocks;
 
+  /// The register mask pointer shared by every RegMaskBits entry, or nullptr
+  /// when the function uses more than one mask pointer.
+  const uint32_t *SingleRegMask = nullptr;
----------------
Sockke wrote:

Hi @arsenm, gentle ping. I updated the implementation based on your feedback and added new performance results. Could you take another look when you have time? Thanks!

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


More information about the llvm-commits mailing list