projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0c067bc
)
Add "support" for stacksave/stackrestore to the dag isel
author
Chris Lattner
<sabre@nondot.org>
Fri, 13 Jan 2006 02:24:42 +0000
(
02:24
+0000)
committer
Chris 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
patch
|
blob
|
history
diff --git
a/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
b/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
index d423ddd1cab7efd53a232f8b0d337b2a17e826a6..4c594bf1faffb03d2f5cc72e60f2a64a89ae1dcb 100644
(file)
--- 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;