summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2009-04-25 17:09:45 +0000
committerDan Gohman <gohman@apple.com>2009-04-25 17:09:45 +0000
commit453998792034058e03404d4aaea3460f166cdcea (patch)
treef20fd5a3d5df404209d65fa7c7a7abeed8f1d1b5
parentdf19948ea76f5a5ec213bfaf08a2c31bc1e1c924 (diff)
downloadbcm5719-llvm-453998792034058e03404d4aaea3460f166cdcea.tar.gz
bcm5719-llvm-453998792034058e03404d4aaea3460f166cdcea.zip
Add a top-level comment about DAGCombiner's role in the compiler.
llvm-svn: 70052
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp b/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
index 72b3e3627ed..b937eaff757 100644
--- a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
@@ -10,6 +10,10 @@
// This pass combines dag nodes to form fewer, simpler DAG nodes. It can be run
// both before and after the DAG is legalized.
//
+// This pass is not a substitute for the LLVM IR instcombine pass. This pass is
+// primarily intended to handle simplification opportunities that are implicit
+// in the LLVM IR and exposed by the various codegen lowering phases.
+//
//===----------------------------------------------------------------------===//
#define DEBUG_TYPE "dagcombine"
OpenPOWER on IntegriCloud