diff options
author | Andrew Trick <atrick@apple.com> | 2013-05-25 03:08:10 +0000 |
---|---|---|
committer | Andrew Trick <atrick@apple.com> | 2013-05-25 03:08:10 +0000 |
commit | dd0fb018a7cd2214c7bc5c6c767f626f99b47ba9 (patch) | |
tree | 50fe35710d547f4df2e5f982e0a7c32791b3d680 /lib/Target/NVPTX | |
parent | ac6d9bec671252dd1e596fa71180ff6b39d06b5d (diff) | |
download | external_llvm-dd0fb018a7cd2214c7bc5c6c767f626f99b47ba9.zip external_llvm-dd0fb018a7cd2214c7bc5c6c767f626f99b47ba9.tar.gz external_llvm-dd0fb018a7cd2214c7bc5c6c767f626f99b47ba9.tar.bz2 |
Track IR ordering of SelectionDAG nodes 3/4.
Remove the old IR ordering mechanism and switch to new one. Fix unit
test failures.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@182704 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/NVPTX')
-rw-r--r-- | lib/Target/NVPTX/NVPTXISelLowering.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/Target/NVPTX/NVPTXISelLowering.cpp b/lib/Target/NVPTX/NVPTXISelLowering.cpp index 5caf08a2..9ebb888 100644 --- a/lib/Target/NVPTX/NVPTXISelLowering.cpp +++ b/lib/Target/NVPTX/NVPTXISelLowering.cpp @@ -1145,14 +1145,14 @@ SDValue NVPTXTargetLowering::LowerFormalArguments( false, TD->getABITypeAlignment(ObjectVT.getTypeForEVT(F->getContext()))); if (p.getNode()) - DAG.AssignOrdering(p.getNode(), idx + 1); + p.getNode()->setIROrder(idx + 1); InVals.push_back(p); } else { // If no ABI, just move the param symbol SDValue Arg = getParamSymbol(DAG, idx, ObjectVT); SDValue p = DAG.getNode(NVPTXISD::MoveParam, dl, ObjectVT, Arg); if (p.getNode()) - DAG.AssignOrdering(p.getNode(), idx + 1); + p.getNode()->setIROrder(idx + 1); InVals.push_back(p); } continue; @@ -1169,7 +1169,7 @@ SDValue NVPTXTargetLowering::LowerFormalArguments( SDValue Arg = getParamSymbol(DAG, idx, getPointerTy()); SDValue p = DAG.getNode(NVPTXISD::MoveParam, dl, ObjectVT, Arg); if (p.getNode()) - DAG.AssignOrdering(p.getNode(), idx + 1); + p.getNode()->setIROrder(idx + 1); if (isKernel) InVals.push_back(p); else { |