aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-08-30 22:53:30 +0000
committerChris Lattner <sabre@nondot.org>2002-08-30 22:53:30 +0000
commit2964f3624c38247d1954927754c1933400dae0d6 (patch)
treec659144681f41d74a42884d1df2b6290b8542bef
parent77e14adf0bb15762b7892529ad5c7705600b4d3a (diff)
downloadexternal_llvm-2964f3624c38247d1954927754c1933400dae0d6.tar.gz
external_llvm-2964f3624c38247d1954927754c1933400dae0d6.tar.bz2
external_llvm-2964f3624c38247d1954927754c1933400dae0d6.zip
Really minor cleanups
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3549 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/Transforms/Scalar/GCSE.cpp13
1 files changed, 4 insertions, 9 deletions
diff --git a/lib/Transforms/Scalar/GCSE.cpp b/lib/Transforms/Scalar/GCSE.cpp
index ef1d056ed7..e8e140f203 100644
--- a/lib/Transforms/Scalar/GCSE.cpp
+++ b/lib/Transforms/Scalar/GCSE.cpp
@@ -2,24 +2,19 @@
//
// This pass is designed to be a very quick global transformation that
// eliminates global common subexpressions from a function. It does this by
-// examining the SSA value graph of the function, instead of doing slow, dense,
-// bit-vector computations.
+// using an existing value numbering implementation to identify the common
+// subexpressions, eliminating them when possible.
//
//===----------------------------------------------------------------------===//
#include "llvm/Transforms/Scalar.h"
-#include "llvm/InstrTypes.h"
#include "llvm/iMemory.h"
+#include "llvm/Type.h"
#include "llvm/Analysis/Dominators.h"
#include "llvm/Analysis/ValueNumbering.h"
#include "llvm/Support/InstIterator.h"
-#include "llvm/Support/CFG.h"
-#include "llvm/Type.h"
#include "Support/StatisticReporter.h"
#include <algorithm>
-using std::set;
-using std::map;
-
namespace {
Statistic<> NumInstRemoved("gcse\t\t- Number of instructions removed");
@@ -28,7 +23,7 @@ namespace {
"to non-instruction values");
class GCSE : public FunctionPass {
- set<Instruction*> WorkList;
+ std::set<Instruction*> WorkList;
DominatorSet *DomSetInfo;
#if 0
ImmediateDominators *ImmDominator;