mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-21 12:02:58 +02:00
After early-lowering the FORMAL_ARGUMENTS node, delete it.
llvm-svn: 53874
This commit is contained in:
parent
a2bb31372d
commit
dd84251894
@ -4686,6 +4686,13 @@ void TargetLowering::LowerArguments(Function &F, SelectionDAG &DAG,
|
||||
(Result->getNumValues()+1 == TmpRes.Val->getNumValues() &&
|
||||
TmpRes.getValue(Result->getNumValues()).getValueType() == MVT::Flag))
|
||||
&& "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;
|
||||
|
||||
unsigned NumArgRegs = Result->getNumValues() - 1;
|
||||
|
Loading…
Reference in New Issue
Block a user