Changes in directory llvm/lib/CodeGen/SelectionDAG:

LegalizeDAG.cpp updated: 1.220 -> 1.221
---
Log message:

cycle counter fix

---
Diffs of the changes:  (+6 -0)

 LegalizeDAG.cpp |    6 ++++++
 1 files changed, 6 insertions(+)


Index: llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
diff -u llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp:1.220 
llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp:1.221
--- llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp:1.220 Thu Dec  1 12:21:35 2005
+++ llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp       Thu Dec  1 22:56:24 2005
@@ -1193,6 +1193,12 @@
     Tmp1 = LegalizeOp(Node->getOperand(0)); // Legalize the chain
     if (Tmp1 != Node->getOperand(0))
       Result = DAG.getNode(ISD::READCYCLECOUNTER, MVT::i64, Tmp1);
+
+    // Since rdcc produce two values, make sure to remember that we legalized
+    // both of them.
+    AddLegalizedOperand(SDOperand(Node, 0), Result);
+    AddLegalizedOperand(SDOperand(Node, 1), Result.getValue(1));
+    return Result.getValue(Op.ResNo);
     break;
 
   case ISD::TRUNCSTORE:



_______________________________________________
llvm-commits mailing list
llvm-commits@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits

Reply via email to