summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/StrongPHIElimination.cpp
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2008-03-05 00:59:57 +0000
committerEvan Cheng <evan.cheng@apple.com>2008-03-05 00:59:57 +0000
commit6325446666b4c76f399b3974f8ef1b5092624e2a (patch)
treed1ccfe11959e609c91d777fb9903a8709c7ae9ad /llvm/lib/CodeGen/StrongPHIElimination.cpp
parentf9c67f60560a1e63f2741b6c3ed8a093d0f79325 (diff)
downloadbcm5719-llvm-6325446666b4c76f399b3974f8ef1b5092624e2a.tar.gz
bcm5719-llvm-6325446666b4c76f399b3974f8ef1b5092624e2a.zip
Refactor code. Remove duplicated functions that basically do the same thing as
findRegisterUseOperandIdx, findRegisterDefOperandIndx. Fix some naming inconsistencies. llvm-svn: 47927
Diffstat (limited to 'llvm/lib/CodeGen/StrongPHIElimination.cpp')
-rw-r--r--llvm/lib/CodeGen/StrongPHIElimination.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/lib/CodeGen/StrongPHIElimination.cpp b/llvm/lib/CodeGen/StrongPHIElimination.cpp
index cdf827d50e6..4611daec46a 100644
--- a/llvm/lib/CodeGen/StrongPHIElimination.cpp
+++ b/llvm/lib/CodeGen/StrongPHIElimination.cpp
@@ -351,10 +351,10 @@ static bool interferes(unsigned a, unsigned b, MachineBasicBlock* scan,
break;
}
// Store KillInsts if they match up with the definition
- } else if (LV.KillsRegister(curr, a)) {
+ } else if (curr->killsRegister(a)) {
if (def == MRI->getVRegDef(a)) {
kill = curr;
- } else if (LV.KillsRegister(curr, b)) {
+ } else if (curr->killsRegister(b)) {
if (def == MRI->getVRegDef(b)) {
kill = curr;
}
@@ -373,7 +373,7 @@ static bool interferes(unsigned a, unsigned b, MachineBasicBlock* scan,
break;
}
// Save KillInsts of First
- } else if (LV.KillsRegister(curr, a)) {
+ } else if (curr->killsRegister(a)) {
kill = curr;
}
// Symmetric with the above
@@ -386,7 +386,7 @@ static bool interferes(unsigned a, unsigned b, MachineBasicBlock* scan,
interference = false;
break;
}
- } else if (LV.KillsRegister(curr, b)) {
+ } else if (curr->killsRegister(b)) {
kill = curr;
}
}
OpenPOWER on IntegriCloud