[llvm-commits] [llvm] r41900 - /llvm/trunk/lib/CodeGen/SelectionDAG/ScheduleDAGRRList.cpp
Evan Cheng
evan.cheng at apple.com
Wed Sep 12 17:06:01 PDT 2007
Author: evancheng
Date: Wed Sep 12 19:06:00 2007
New Revision: 41900
URL: http://llvm.org/viewvc/llvm-project?rev=41900&view=rev
Log:
Bug fixes.
Modified:
llvm/trunk/lib/CodeGen/SelectionDAG/ScheduleDAGRRList.cpp
Modified: llvm/trunk/lib/CodeGen/SelectionDAG/ScheduleDAGRRList.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/SelectionDAG/ScheduleDAGRRList.cpp?rev=41900&r1=41899&r2=41900&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/SelectionDAG/ScheduleDAGRRList.cpp (original)
+++ llvm/trunk/lib/CodeGen/SelectionDAG/ScheduleDAGRRList.cpp Wed Sep 12 19:06:00 2007
@@ -123,7 +123,7 @@
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 @@
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 @@
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 @@
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) {
More information about the llvm-commits
mailing list