diff options
author | Andrew Trick <atrick@apple.com> | 2013-05-25 02:20:36 +0000 |
---|---|---|
committer | Andrew Trick <atrick@apple.com> | 2013-05-25 02:20:36 +0000 |
commit | 175143bf88e65fa87d7b4367829d4854f0e1a986 (patch) | |
tree | 9bcf9e9802df43e563ec21f0c939067dfb68a227 /llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp | |
parent | fc1c5fe9270c907e32feabf80deda0f8a30032a2 (diff) | |
download | bcm5719-llvm-175143bf88e65fa87d7b4367829d4854f0e1a986.tar.gz bcm5719-llvm-175143bf88e65fa87d7b4367829d4854f0e1a986.zip |
Track IR ordering of SelectionDAG nodes 1/4.
Use a field in the SelectionDAGNode object to track its IR ordering.
This adds fields and utility classes without changing existing
interfaces or functionality.
llvm-svn: 182701
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp')
-rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp index 9799568e03d..32035b06604 100644 --- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp @@ -869,7 +869,7 @@ void SelectionDAGBuilder::clear() { UnusedArgNodeMap.clear(); PendingLoads.clear(); PendingExports.clear(); - CurDebugLoc = DebugLoc(); + CurInst = NULL; HasTailCall = false; } @@ -951,14 +951,14 @@ void SelectionDAGBuilder::visit(const Instruction &I) { if (isa<TerminatorInst>(&I)) HandlePHINodesInSuccessorBlocks(I.getParent()); - CurDebugLoc = I.getDebugLoc(); + CurInst = &I; visit(I.getOpcode(), I); if (!isa<TerminatorInst>(&I) && !HasTailCall) CopyToExportRegsIfNeeded(&I); - CurDebugLoc = DebugLoc(); + CurInst = NULL; } void SelectionDAGBuilder::visitPHI(const PHINode &) { |