[llvm-commits] CVS: llvm/lib/CodeGen/LiveVariables.cpp
Alkis Evlogimenos
alkis at cs.uiuc.edu
Thu Aug 26 15:23:43 PDT 2004
Changes in directory llvm/lib/CodeGen:
LiveVariables.cpp updated: 1.40 -> 1.41
---
Log message:
Use newly added API in MRegisterInfo and don't expose the allocatable
register set anymore. Its users now use the MRegisterInfo API.
---
Diffs of the changes: (+1 -13)
Index: llvm/lib/CodeGen/LiveVariables.cpp
diff -u llvm/lib/CodeGen/LiveVariables.cpp:1.40 llvm/lib/CodeGen/LiveVariables.cpp:1.41
--- llvm/lib/CodeGen/LiveVariables.cpp:1.40 Mon Jul 19 02:04:55 2004
+++ llvm/lib/CodeGen/LiveVariables.cpp Thu Aug 26 17:23:32 2004
@@ -148,19 +148,7 @@
RegInfo = MF.getTarget().getRegisterInfo();
assert(RegInfo && "Target doesn't have register information?");
- // First time though, initialize AllocatablePhysicalRegisters for the target
- if (AllocatablePhysicalRegisters.empty()) {
- // Make space, initializing to false...
- AllocatablePhysicalRegisters.resize(RegInfo->getNumRegs());
-
- // Loop over all of the register classes...
- for (MRegisterInfo::regclass_iterator RCI = RegInfo->regclass_begin(),
- E = RegInfo->regclass_end(); RCI != E; ++RCI)
- // Loop over all of the allocatable registers in the function...
- for (TargetRegisterClass::iterator I = (*RCI)->allocation_order_begin(MF),
- E = (*RCI)->allocation_order_end(MF); I != E; ++I)
- AllocatablePhysicalRegisters[*I] = true; // The reg is allocatable!
- }
+ AllocatablePhysicalRegisters = RegInfo->getAllocatableSet(MF);
// PhysRegInfo - Keep track of which instruction was the last use of a
// physical register. This is a purely local property, because all physical
More information about the llvm-commits
mailing list