continued readcyclecounter support
[oota-llvm.git] / lib / CodeGen / SelectionDAG / SelectionDAGISel.cpp
index e954f15d5424c6bcdb90080e24ca41408c12592e..ae61e208963e4854cb761189efc68b6753053de5 100644 (file)
@@ -804,6 +804,9 @@ SelectionDAGLowering::visitIntrinsicCall(CallInst &I, unsigned Intrinsic) {
     DAG.setRoot(DAG.getNode(ISD::PCMARKER, MVT::Other, getRoot(), Tmp));
     return 0;
   }
+  case Intrinsic::readcyclecounter: 
+    setValue(&I, DAG.getNode(ISD::READCYCLECOUNTER, MVT::i64, getRoot()));
+    return 0;
   case Intrinsic::cttz:
     setValue(&I, DAG.getNode(ISD::CTTZ,
                              getValue(I.getOperand(1)).getValueType(),