diff options
author | Dan Gohman <gohman@apple.com> | 2010-05-01 00:25:44 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2010-05-01 00:25:44 +0000 |
commit | 5d059718c99cbaf92b9039e9cf0b6bd73cf19ac4 (patch) | |
tree | 139a67a1c075a03995dc45e6247b6865f64a36f9 /llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp | |
parent | 02bc6787ca2b924decdca5fd8c6f8dc6bfb10689 (diff) | |
download | bcm5719-llvm-5d059718c99cbaf92b9039e9cf0b6bd73cf19ac4.tar.gz bcm5719-llvm-5d059718c99cbaf92b9039e9cf0b6bd73cf19ac4.zip |
Reorgnaize more switch code lowering to clean up some tricky
code, and to eliminate the need for the SelectionDAGBuilder
state to be live during CodeGenAndEmitDAG calls.
Call SDB->clear() before CodeGenAndEmitDAG calls instead of
before it, and move the CurDAG->clear() out of SelectionDAGBuilder,
which doesn't own the DAG, and into CodeGenAndEmitDAG.
llvm-svn: 102814
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp')
-rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp index ade38a5121c..19169f69a66 100644 --- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp @@ -545,7 +545,6 @@ void SelectionDAGBuilder::clear() { NodeMap.clear(); PendingLoads.clear(); PendingExports.clear(); - DAG.clear(); CurDebugLoc = DebugLoc(); HasTailCall = false; } |