Add "support" for stacksave/stackrestore to the dag isel
authorChris Lattner <sabre@nondot.org>
Fri, 13 Jan 2006 02:24:42 +0000 (02:24 +0000)
committerChris Lattner <sabre@nondot.org>
Fri, 13 Jan 2006 02:24:42 +0000 (02:24 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25268 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp

index d423ddd1cab7efd53a232f8b0d337b2a17e826a6..4c594bf1faffb03d2f5cc72e60f2a64a89ae1dcb 100644 (file)
@@ -1004,6 +1004,11 @@ SelectionDAGLowering::visitIntrinsicCall(CallInst &I, unsigned Intrinsic) {
                              getValue(I.getOperand(1)).getValueType(),
                              getValue(I.getOperand(1))));
     return 0;
+  case Intrinsic::stacksave:
+    setValue(&I, DAG.getNode(ISD::UNDEF, TLI.getValueType(I.getType())));
+    return 0;  // FIXME: discard stacksave/restore
+  case Intrinsic::stackrestore:
+    return 0;  // FIXME: discard stacksave/restore
   case Intrinsic::prefetch:
     // FIXME: Currently discarding prefetches.
     return 0;