summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/RegAllocSimple.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-12-15 21:13:12 +0000
committerChris Lattner <sabre@nondot.org>2002-12-15 21:13:12 +0000
commit1499e5a92ce5830ab99aa464fec7eadd99f321fa (patch)
tree09ea890f9836dd0720e2ffaf7958181e1d00c47d /llvm/lib/CodeGen/RegAllocSimple.cpp
parent2979a859846137ef534573db757d2fdd33b36e78 (diff)
downloadbcm5719-llvm-1499e5a92ce5830ab99aa464fec7eadd99f321fa.tar.gz
bcm5719-llvm-1499e5a92ce5830ab99aa464fec7eadd99f321fa.zip
Give simple reg allocator a nice Pass Name
llvm-svn: 5058
Diffstat (limited to 'llvm/lib/CodeGen/RegAllocSimple.cpp')
-rw-r--r--llvm/lib/CodeGen/RegAllocSimple.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/RegAllocSimple.cpp b/llvm/lib/CodeGen/RegAllocSimple.cpp
index 17b1044c5ce..73c193ba5b8 100644
--- a/llvm/lib/CodeGen/RegAllocSimple.cpp
+++ b/llvm/lib/CodeGen/RegAllocSimple.cpp
@@ -80,6 +80,10 @@ namespace {
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 @@ void RegAllocSimple::EliminatePHINodes(MachineBasicBlock &MBB) {
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);
OpenPOWER on IntegriCloud