diff options
author | Dan Gohman <gohman@apple.com> | 2008-08-21 16:36:34 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2008-08-21 16:36:34 +0000 |
commit | ad3460c3c968e33c5b9a07104b9fe5a5c27ff55b (patch) | |
tree | 8734fb2e04f095fd6c1dcbda1d89fa9debb00153 /lib/Target/Sparc/SparcISelDAGToDAG.cpp | |
parent | ca84121596640c99887f909f3b9a3ae830391e64 (diff) |
Simplify SelectRoot's interface, and factor out some common code
from all targets.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@55124 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/Sparc/SparcISelDAGToDAG.cpp')
-rw-r--r-- | lib/Target/Sparc/SparcISelDAGToDAG.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Target/Sparc/SparcISelDAGToDAG.cpp b/lib/Target/Sparc/SparcISelDAGToDAG.cpp index 7d2d11ec72..f62387307d 100644 --- a/lib/Target/Sparc/SparcISelDAGToDAG.cpp +++ b/lib/Target/Sparc/SparcISelDAGToDAG.cpp @@ -66,7 +66,7 @@ void SparcDAGToDAGISel::InstructionSelect(SelectionDAG &DAG) { DEBUG(BB->dump()); // Select target instructions for the DAG. - DAG.setRoot(SelectRoot(DAG.getRoot())); + SelectRoot(); DAG.RemoveDeadNodes(); } |