aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/Analysis
diff options
context:
space:
mode:
authorAnton Korobeynikov <asl@math.spbu.ru>2007-08-20 21:17:26 +0000
committerAnton Korobeynikov <asl@math.spbu.ru>2007-08-20 21:17:26 +0000
commita684b6742eb0bbc9a4356dc412ae5bde50bb568d (patch)
tree0bce7b97ccd13e6b5804f7f2b83a749b90319b07 /include/llvm/Analysis
parentc166b954e06fa2253d982149a57393748e8a68ec (diff)
downloadexternal_llvm-a684b6742eb0bbc9a4356dc412ae5bde50bb568d.zip
external_llvm-a684b6742eb0bbc9a4356dc412ae5bde50bb568d.tar.gz
external_llvm-a684b6742eb0bbc9a4356dc412ae5bde50bb568d.tar.bz2
- Use correct header for SCEV inside LoopPass.cpp
- Move SCEVExpander::expand() out-of-line workarounding possible toolchain bug git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@41197 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Analysis')
-rw-r--r--include/llvm/Analysis/ScalarEvolutionExpander.h13
1 files changed, 2 insertions, 11 deletions
diff --git a/include/llvm/Analysis/ScalarEvolutionExpander.h b/include/llvm/Analysis/ScalarEvolutionExpander.h
index a5cc713..8866de5 100644
--- a/include/llvm/Analysis/ScalarEvolutionExpander.h
+++ b/include/llvm/Analysis/ScalarEvolutionExpander.h
@@ -93,17 +93,8 @@ namespace llvm {
static Value *InsertBinop(Instruction::BinaryOps Opcode, Value *LHS,
Value *RHS, Instruction *&InsertPt);
protected:
- Value *expand(SCEV *S) {
- // Check to see if we already expanded this.
- std::map<SCEVHandle, Value*>::iterator I = InsertedExpressions.find(S);
- if (I != InsertedExpressions.end())
- return I->second;
-
- Value *V = visit(S);
- InsertedExpressions[S] = V;
- return V;
- }
-
+ Value *expand(SCEV *S);
+
Value *visitConstant(SCEVConstant *S) {
return S->getValue();
}