diff options
author | Bill Wendling <isanbard@gmail.com> | 2009-12-23 00:47:20 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2009-12-23 00:47:20 +0000 |
commit | 9df5c6dfc308f66ee21a25f1f7df7e9004d97e17 (patch) | |
tree | 2f051a56ef24fd1d247f39718dd8fc04cf7ed84d /llvm/lib/CodeGen | |
parent | f4894fe0ebd166053a996b4fccd62cf9dddd67df (diff) | |
download | bcm5719-llvm-9df5c6dfc308f66ee21a25f1f7df7e9004d97e17.tar.gz bcm5719-llvm-9df5c6dfc308f66ee21a25f1f7df7e9004d97e17.zip |
Remove node ordering from inline asm nodes. It's not needed.
llvm-svn: 91961
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp index 5033f7243cb..d9203121c0b 100644 --- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp @@ -5868,8 +5868,6 @@ void SelectionDAGBuilder::visitInlineAsm(CallSite CS) { Chain = DAG.getStore(Chain, getCurDebugLoc(), OpInfo.CallOperand, StackSlot, NULL, 0); OpInfo.CallOperand = StackSlot; - if (DisableScheduling) - DAG.AssignOrdering(Chain.getNode(), SDNodeOrder); } // There is no longer a Value* corresponding to this operand. @@ -5877,9 +5875,6 @@ void SelectionDAGBuilder::visitInlineAsm(CallSite CS) { // It is now an indirect operand. OpInfo.isIndirect = true; - - if (DisableScheduling) - DAG.AssignOrdering(OpInfo.CallOperand.getNode(), SDNodeOrder); } // If this constraint is for a specific register, allocate it before @@ -6101,9 +6096,6 @@ void SelectionDAGBuilder::visitInlineAsm(CallSite CS) { &AsmNodeOperands[0], AsmNodeOperands.size()); Flag = Chain.getValue(1); - if (DisableScheduling) - DAG.AssignOrdering(Chain.getNode(), SDNodeOrder); - // If this asm returns a register value, copy the result from that register // and set it as the value of the call. if (!RetValRegs.Regs.empty()) { @@ -6132,9 +6124,6 @@ void SelectionDAGBuilder::visitInlineAsm(CallSite CS) { } assert(ResultType == Val.getValueType() && "Asm result value mismatch!"); - - if (DisableScheduling) - DAG.AssignOrdering(Val.getNode(), SDNodeOrder); } setValue(CS.getInstruction(), Val); @@ -6164,17 +6153,12 @@ void SelectionDAGBuilder::visitInlineAsm(CallSite CS) { getValue(StoresToEmit[i].second), StoresToEmit[i].second, 0); OutChains.push_back(Val); - if (DisableScheduling) - DAG.AssignOrdering(Val.getNode(), SDNodeOrder); } if (!OutChains.empty()) Chain = DAG.getNode(ISD::TokenFactor, getCurDebugLoc(), MVT::Other, &OutChains[0], OutChains.size()); - if (DisableScheduling) - DAG.AssignOrdering(Chain.getNode(), SDNodeOrder); - DAG.setRoot(Chain); } |