summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2007-09-13 00:06:00 +0000
committerEvan Cheng <evan.cheng@apple.com>2007-09-13 00:06:00 +0000
commit100c8d6c8ff3c8e5f472a608eb7a92af1eacc8c8 (patch)
tree9846fe2bcf72c079e306c6f4c437af7b515a18bd /llvm/lib/CodeGen
parent57ff15825585a80e4e5fad2521d457d3efe5769a (diff)
downloadbcm5719-llvm-100c8d6c8ff3c8e5f472a608eb7a92af1eacc8c8.tar.gz
bcm5719-llvm-100c8d6c8ff3c8e5f472a608eb7a92af1eacc8c8.zip
Bug fixes.
llvm-svn: 41900
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/ScheduleDAGRRList.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/ScheduleDAGRRList.cpp b/llvm/lib/CodeGen/SelectionDAG/ScheduleDAGRRList.cpp
index 746be9d1c39..8c8648d63a0 100644
--- a/llvm/lib/CodeGen/SelectionDAG/ScheduleDAGRRList.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/ScheduleDAGRRList.cpp
@@ -123,7 +123,7 @@ void ScheduleDAGRRList::CommuteNodesToReducePressure() {
if (!SU) continue;
if (SU->isCommutable) {
unsigned Opc = SU->Node->getTargetOpcode();
- unsigned NumRes = CountResults(SU->Node);
+ unsigned NumRes = TII->getNumDefs(Opc);
unsigned NumOps = CountOperands(SU->Node);
for (unsigned j = 0; j != NumOps; ++j) {
if (TII->getOperandConstraint(Opc, j+NumRes, TOI::TIED_TO) == -1)
@@ -521,7 +521,7 @@ namespace {
bool isDUOperand(const SUnit *SU1, const SUnit *SU2) {
unsigned Opc = SU1->Node->getTargetOpcode();
- unsigned NumRes = ScheduleDAG::CountResults(SU1->Node);
+ unsigned NumRes = TII->getNumDefs(Opc);
unsigned NumOps = ScheduleDAG::CountOperands(SU1->Node);
for (unsigned i = 0; i != NumOps; ++i) {
if (TII->getOperandConstraint(Opc, i+NumRes, TOI::TIED_TO) == -1)
@@ -705,7 +705,7 @@ template<class SF>
bool BURegReductionPriorityQueue<SF>::canClobber(SUnit *SU, SUnit *Op) {
if (SU->isTwoAddress) {
unsigned Opc = SU->Node->getTargetOpcode();
- unsigned NumRes = ScheduleDAG::CountResults(SU->Node);
+ unsigned NumRes = TII->getNumDefs(Opc);
unsigned NumOps = ScheduleDAG::CountOperands(SU->Node);
for (unsigned i = 0; i != NumOps; ++i) {
if (TII->getOperandConstraint(Opc, i+NumRes, TOI::TIED_TO) != -1) {
@@ -735,7 +735,7 @@ void BURegReductionPriorityQueue<SF>::AddPseudoTwoAddrDeps() {
continue;
unsigned Opc = Node->getTargetOpcode();
- unsigned NumRes = ScheduleDAG::CountResults(Node);
+ unsigned NumRes = TII->getNumDefs(Opc);
unsigned NumOps = ScheduleDAG::CountOperands(Node);
for (unsigned j = 0; j != NumOps; ++j) {
if (TII->getOperandConstraint(Opc, j+NumRes, TOI::TIED_TO) != -1) {
OpenPOWER on IntegriCloud