summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-01-23 05:22:07 +0000
committerChris Lattner <sabre@nondot.org>2006-01-23 05:22:07 +0000
commitdeda32a786405c1bf3fc6bfd6bee92932299bdc2 (patch)
treeadc99ba5709ff7c0a3caae8d46017838d3a9bf52 /llvm/lib/CodeGen
parentc66da83a89354050e614ac02bfe139ff30217161 (diff)
downloadbcm5719-llvm-deda32a786405c1bf3fc6bfd6bee92932299bdc2.tar.gz
bcm5719-llvm-deda32a786405c1bf3fc6bfd6bee92932299bdc2.zip
Fix bugs lowering stackrestore, fixing 2004-08-12-InlinerAndAllocas.c on
PPC. llvm-svn: 25522
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
index 441311cc06e..7e20f091b22 100644
--- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
@@ -1043,10 +1043,11 @@ SelectionDAGLowering::visitIntrinsicCall(CallInst &I, unsigned Intrinsic) {
DAG.setRoot(Tmp.getValue(1));
return 0;
}
- case Intrinsic::stackrestore:
- DAG.setRoot(DAG.getNode(ISD::STACKRESTORE, MVT::Other, DAG.getRoot(),
- getValue(I.getOperand(1))));
+ case Intrinsic::stackrestore: {
+ SDOperand Tmp = getValue(I.getOperand(1));
+ DAG.setRoot(DAG.getNode(ISD::STACKRESTORE, MVT::Other, getRoot(), Tmp));
return 0;
+ }
case Intrinsic::prefetch:
// FIXME: Currently discarding prefetches.
return 0;
OpenPOWER on IntegriCloud