diff options
author | Bill Wendling <isanbard@gmail.com> | 2009-12-23 00:44:51 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2009-12-23 00:44:51 +0000 |
commit | c1d3c944ab4410b6dc0e3718cef08d166665b68f (patch) | |
tree | dabcd1ed64fcaca37232aaca6fb7ee11d927f738 | |
parent | 8295a0a991c3910e37fa2f20f45973d40f7034af (diff) | |
download | external_llvm-c1d3c944ab4410b6dc0e3718cef08d166665b68f.zip external_llvm-c1d3c944ab4410b6dc0e3718cef08d166665b68f.tar.gz external_llvm-c1d3c944ab4410b6dc0e3718cef08d166665b68f.tar.bz2 |
Remove node ordering from VA nodes. It's not needed.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@91958 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp | 39 |
1 files changed, 14 insertions, 25 deletions
diff --git a/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp b/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp index 18cad35..5033f72 100644 --- a/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp +++ b/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp @@ -6179,13 +6179,10 @@ void SelectionDAGBuilder::visitInlineAsm(CallSite CS) { } void SelectionDAGBuilder::visitVAStart(CallInst &I) { - SDValue Res = DAG.getNode(ISD::VASTART, getCurDebugLoc(), - MVT::Other, getRoot(), - getValue(I.getOperand(1)), - DAG.getSrcValue(I.getOperand(1))); - DAG.setRoot(Res); - if (DisableScheduling) - DAG.AssignOrdering(Res.getNode(), SDNodeOrder); + DAG.setRoot(DAG.getNode(ISD::VASTART, getCurDebugLoc(), + MVT::Other, getRoot(), + getValue(I.getOperand(1)), + DAG.getSrcValue(I.getOperand(1)))); } void SelectionDAGBuilder::visitVAArg(VAArgInst &I) { @@ -6194,30 +6191,22 @@ void SelectionDAGBuilder::visitVAArg(VAArgInst &I) { DAG.getSrcValue(I.getOperand(0))); setValue(&I, V); DAG.setRoot(V.getValue(1)); - if (DisableScheduling) - DAG.AssignOrdering(V.getNode(), SDNodeOrder); } void SelectionDAGBuilder::visitVAEnd(CallInst &I) { - SDValue Res = DAG.getNode(ISD::VAEND, getCurDebugLoc(), - MVT::Other, getRoot(), - getValue(I.getOperand(1)), - DAG.getSrcValue(I.getOperand(1))); - DAG.setRoot(Res); - if (DisableScheduling) - DAG.AssignOrdering(Res.getNode(), SDNodeOrder); + DAG.setRoot(DAG.getNode(ISD::VAEND, getCurDebugLoc(), + MVT::Other, getRoot(), + getValue(I.getOperand(1)), + DAG.getSrcValue(I.getOperand(1)))); } void SelectionDAGBuilder::visitVACopy(CallInst &I) { - SDValue Res = DAG.getNode(ISD::VACOPY, getCurDebugLoc(), - MVT::Other, getRoot(), - getValue(I.getOperand(1)), - getValue(I.getOperand(2)), - DAG.getSrcValue(I.getOperand(1)), - DAG.getSrcValue(I.getOperand(2))); - DAG.setRoot(Res); - if (DisableScheduling) - DAG.AssignOrdering(Res.getNode(), SDNodeOrder); + DAG.setRoot(DAG.getNode(ISD::VACOPY, getCurDebugLoc(), + MVT::Other, getRoot(), + getValue(I.getOperand(1)), + getValue(I.getOperand(2)), + DAG.getSrcValue(I.getOperand(1)), + DAG.getSrcValue(I.getOperand(2)))); } /// TargetLowering::LowerCallTo - This is the default LowerCallTo |