mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-05-13 17:38:39 +00:00
After early-lowering the FORMAL_ARGUMENTS node, delete it.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@53874 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
a022bdfd99
commit
2dbc167294
@ -4686,6 +4686,13 @@ void TargetLowering::LowerArguments(Function &F, SelectionDAG &DAG,
|
|||||||
(Result->getNumValues()+1 == TmpRes.Val->getNumValues() &&
|
(Result->getNumValues()+1 == TmpRes.Val->getNumValues() &&
|
||||||
TmpRes.getValue(Result->getNumValues()).getValueType() == MVT::Flag))
|
TmpRes.getValue(Result->getNumValues()).getValueType() == MVT::Flag))
|
||||||
&& "Lowering produced unexpected number of results!");
|
&& "Lowering produced unexpected number of results!");
|
||||||
|
|
||||||
|
// The FORMAL_ARGUMENTS node itself is likely no longer needed.
|
||||||
|
if (Result != TmpRes.Val && Result->use_empty()) {
|
||||||
|
HandleSDNode Dummy(DAG.getRoot());
|
||||||
|
DAG.RemoveDeadNode(Result);
|
||||||
|
}
|
||||||
|
|
||||||
Result = TmpRes.Val;
|
Result = TmpRes.Val;
|
||||||
|
|
||||||
unsigned NumArgRegs = Result->getNumValues() - 1;
|
unsigned NumArgRegs = Result->getNumValues() - 1;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user