Add "support" for stacksave/stackrestore to the dag isel

llvm-svn: 25268
This commit is contained in:
Chris Lattner 2006-01-13 02:24:42 +00:00
parent 3b2b0aff0c
commit 6c9c250dcd
1 changed files with 5 additions and 0 deletions

View 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;