summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen
diff options
context:
space:
mode:
authorAndrew Lenharth <andrewl@lenharth.org>2005-12-02 06:08:08 +0000
committerAndrew Lenharth <andrewl@lenharth.org>2005-12-02 06:08:08 +0000
commitf9b27d70110e5dc4554805d00409a4ff2f44a2a1 (patch)
tree9ecac5588c8a207fb2df193307bec0fdc8165403 /llvm/lib/CodeGen
parent73420b379585d67cd873549deff8658615b43ff2 (diff)
downloadbcm5719-llvm-f9b27d70110e5dc4554805d00409a4ff2f44a2a1.tar.gz
bcm5719-llvm-f9b27d70110e5dc4554805d00409a4ff2f44a2a1.zip
bah, must generate all results
llvm-svn: 24574
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp10
1 files changed, 8 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp b/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
index feaf890e950..c02fc9ac69e 100644
--- a/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
@@ -1191,8 +1191,14 @@ SDOperand SelectionDAGLegalize::LegalizeOp(SDOperand Op) {
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.
OpenPOWER on IntegriCloud