[llvm] r175599 - Fix a misunderstanding about how RegMaskBlocks works. This was caught by

Cameron Zwarich zwarich at apple.com
Tue Feb 19 22:46:36 PST 2013


Author: zwarich
Date: Wed Feb 20 00:46:36 2013
New Revision: 175599

URL: http://llvm.org/viewvc/llvm-project?rev=175599&view=rev
Log:
Fix a misunderstanding about how RegMaskBlocks works. This was caught by
assertions in the register allocator when running 'make check' without
LiveVariables.

Modified:
    llvm/trunk/include/llvm/CodeGen/LiveIntervalAnalysis.h

Modified: llvm/trunk/include/llvm/CodeGen/LiveIntervalAnalysis.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/CodeGen/LiveIntervalAnalysis.h?rev=175599&r1=175598&r2=175599&view=diff
==============================================================================
--- llvm/trunk/include/llvm/CodeGen/LiveIntervalAnalysis.h (original)
+++ llvm/trunk/include/llvm/CodeGen/LiveIntervalAnalysis.h Wed Feb 20 00:46:36 2013
@@ -218,7 +218,7 @@ namespace llvm {
       Indexes->insertMBBInMaps(MBB);
       assert(unsigned(MBB->getNumber()) == RegMaskBlocks.size() &&
              "Blocks must be added in order.");
-      RegMaskBlocks.push_back(std::make_pair(MBB->getNumber(), 0));
+      RegMaskBlocks.push_back(std::make_pair(RegMaskSlots.size(), 0));
     }
 
     SlotIndex InsertMachineInstrInMaps(MachineInstr *MI) {





More information about the llvm-commits mailing list