[llvm-commits] CVS: llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
Andrew Lenharth
alenhar2 at cs.uiuc.edu
Thu Dec 1 22:08:20 PST 2005
Changes in directory llvm/lib/CodeGen/SelectionDAG:
LegalizeDAG.cpp updated: 1.221 -> 1.222
---
Log message:
bah, must generate all results
---
Diffs of the changes: (+8 -2)
LegalizeDAG.cpp | 10 ++++++++--
1 files changed, 8 insertions(+), 2 deletions(-)
Index: llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
diff -u llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp:1.221 llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp:1.222
--- llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp:1.221 Thu Dec 1 22:56:24 2005
+++ llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp Fri Dec 2 00:08:08 2005
@@ -1191,8 +1191,14 @@
break;
case ISD::READCYCLECOUNTER:
Tmp1 = LegalizeOp(Node->getOperand(0)); // Legalize the chain
- if (Tmp1 != Node->getOperand(0))
- Result = DAG.getNode(ISD::READCYCLECOUNTER, MVT::i64, Tmp1);
+ if (Tmp1 != Node->getOperand(0)) {
+ std::vector<MVT::ValueType> rtypes;
+ std::vector<SDOperand> rvals;
+ rtypes.push_back(MVT::i64);
+ rtypes.push_back(MVT::Other);
+ rvals.push_back(Tmp1);
+ Result = DAG.getNode(ISD::READCYCLECOUNTER, rtypes, rvals);
+ }
// Since rdcc produce two values, make sure to remember that we legalized
// both of them.
More information about the llvm-commits
mailing list