diff options
| author | Chris Lattner <sabre@nondot.org> | 2002-08-30 22:53:30 +0000 | 
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2002-08-30 22:53:30 +0000 | 
| commit | 1b09a9ab68eb2b5230b0d1002b24323157e62805 (patch) | |
| tree | 14582067c86442c5953b21bb1c79eab98c0c5e4d /llvm/lib/Transforms | |
| parent | e083fe9e34905843243820f4cc292bef7b79a70c (diff) | |
| download | bcm5719-llvm-1b09a9ab68eb2b5230b0d1002b24323157e62805.tar.gz bcm5719-llvm-1b09a9ab68eb2b5230b0d1002b24323157e62805.zip | |
Really minor cleanups
llvm-svn: 3549
Diffstat (limited to 'llvm/lib/Transforms')
| -rw-r--r-- | llvm/lib/Transforms/Scalar/GCSE.cpp | 13 | 
1 files changed, 4 insertions, 9 deletions
| diff --git a/llvm/lib/Transforms/Scalar/GCSE.cpp b/llvm/lib/Transforms/Scalar/GCSE.cpp index ef1d056ed75..e8e140f2032 100644 --- a/llvm/lib/Transforms/Scalar/GCSE.cpp +++ b/llvm/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; | 

