[llvm-commits] CVS: llvm/lib/CodeGen/RegAllocSimple.cpp
Chris Lattner
lattner at cs.uiuc.edu
Sun Dec 15 15:14:01 PST 2002
Changes in directory llvm/lib/CodeGen:
RegAllocSimple.cpp updated: 1.22 -> 1.23
---
Log message:
Give simple reg allocator a nice Pass Name
---
Diffs of the changes:
Index: llvm/lib/CodeGen/RegAllocSimple.cpp
diff -u llvm/lib/CodeGen/RegAllocSimple.cpp:1.22 llvm/lib/CodeGen/RegAllocSimple.cpp:1.23
--- llvm/lib/CodeGen/RegAllocSimple.cpp:1.22 Sun Dec 15 15:02:20 2002
+++ llvm/lib/CodeGen/RegAllocSimple.cpp Sun Dec 15 15:13:12 2002
@@ -80,6 +80,10 @@
return runOnMachineFunction(MachineFunction::get(&Fn));
}
+ virtual const char *getPassName() const {
+ return "Simple Register Allocator";
+ }
+
private:
/// runOnMachineFunction - Register allocate the whole function
bool runOnMachineFunction(MachineFunction &Fn);
@@ -328,7 +332,7 @@
saveVirtRegToStack(opBlock, opI, virtualReg, physReg);
} else {
// Allocate a physical register and add a move in the BB
- unsigned opVirtualReg = (unsigned) opVal.getAllocatedRegNum();
+ unsigned opVirtualReg = opVal.getAllocatedRegNum();
unsigned opPhysReg;
opI = moveUseToReg(opBlock, opI, opVirtualReg, physReg);
More information about the llvm-commits
mailing list