mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-17 21:35:07 +00:00
Fix bugs lowering stackrestore, fixing 2004-08-12-InlinerAndAllocas.c on
PPC. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25522 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
1ac2d51806
commit
39a17dd31d
@ -1043,10 +1043,11 @@ SelectionDAGLowering::visitIntrinsicCall(CallInst &I, unsigned Intrinsic) {
|
|||||||
DAG.setRoot(Tmp.getValue(1));
|
DAG.setRoot(Tmp.getValue(1));
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
case Intrinsic::stackrestore:
|
case Intrinsic::stackrestore: {
|
||||||
DAG.setRoot(DAG.getNode(ISD::STACKRESTORE, MVT::Other, DAG.getRoot(),
|
SDOperand Tmp = getValue(I.getOperand(1));
|
||||||
getValue(I.getOperand(1))));
|
DAG.setRoot(DAG.getNode(ISD::STACKRESTORE, MVT::Other, getRoot(), Tmp));
|
||||||
return 0;
|
return 0;
|
||||||
|
}
|
||||||
case Intrinsic::prefetch:
|
case Intrinsic::prefetch:
|
||||||
// FIXME: Currently discarding prefetches.
|
// FIXME: Currently discarding prefetches.
|
||||||
return 0;
|
return 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user