diff options
| author | Dan Gohman <gohman@apple.com> | 2010-06-19 21:21:39 +0000 |
|---|---|---|
| committer | Dan Gohman <gohman@apple.com> | 2010-06-19 21:21:39 +0000 |
| commit | 4792a62cafd24834a7ee9c4f536a61389ac0a47d (patch) | |
| tree | 6ba1fd173e51230e87974545c0f30e164a6b9bcc /lib/Transforms/Scalar/LoopStrengthReduce.cpp | |
| parent | 594f3c0150f8e80e89b346de0723ea9727bceafb (diff) | |
| download | external_llvm-4792a62cafd24834a7ee9c4f536a61389ac0a47d.zip external_llvm-4792a62cafd24834a7ee9c4f536a61389ac0a47d.tar.gz external_llvm-4792a62cafd24834a7ee9c4f536a61389ac0a47d.tar.bz2 | |
Don't include things in anonymous namespaces that don't need it.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@106395 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/Scalar/LoopStrengthReduce.cpp')
| -rw-r--r-- | lib/Transforms/Scalar/LoopStrengthReduce.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/Transforms/Scalar/LoopStrengthReduce.cpp b/lib/Transforms/Scalar/LoopStrengthReduce.cpp index 94df955..c84e5a2 100644 --- a/lib/Transforms/Scalar/LoopStrengthReduce.cpp +++ b/lib/Transforms/Scalar/LoopStrengthReduce.cpp @@ -976,6 +976,8 @@ public: void dump() const; }; +} + /// HasFormula - Test whether this use as a formula which has the same /// registers as the given formula. bool LSRUse::HasFormulaWithSameRegs(const Formula &F) const { @@ -1203,6 +1205,8 @@ static bool isAlwaysFoldable(const SCEV *S, return isLegalUse(AM, MinOffset, MaxOffset, Kind, AccessTy, TLI); } +namespace { + /// FormulaSorter - This class implements an ordering for formulae which sorts /// the by their standalone cost. class FormulaSorter { |
