diff options
author | Chris Lattner <sabre@nondot.org> | 2006-01-13 02:24:42 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2006-01-13 02:24:42 +0000 |
commit | e8f7a4bbee5b29d0c94120e7e24365113758f0a2 (patch) | |
tree | 14a808e75ea22f31558a84e42243f507dfb7e77d | |
parent | 0c067bc11d5274973c21f83b6c6403a9928265d8 (diff) | |
download | external_llvm-e8f7a4bbee5b29d0c94120e7e24365113758f0a2.zip external_llvm-e8f7a4bbee5b29d0c94120e7e24365113758f0a2.tar.gz external_llvm-e8f7a4bbee5b29d0c94120e7e24365113758f0a2.tar.bz2 |
Add "support" for stacksave/stackrestore to the dag isel
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25268 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp b/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp index d423ddd..4c594bf 100644 --- a/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp +++ b/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp @@ -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; |