diff options
author | Dan Gohman <gohman@apple.com> | 2010-04-11 19:28:47 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2010-04-11 19:28:47 +0000 |
commit | 86eeeaf87747912a6c2404c383a416b07233c748 (patch) | |
tree | 1a96f7b8f779d5815bbcb2ab3653b9aa45434b84 /lib/Analysis/IVUsers.cpp | |
parent | d908bbf7275d8ae67e918dc92ff9060a905eb27a (diff) | |
download | external_llvm-86eeeaf87747912a6c2404c383a416b07233c748.zip external_llvm-86eeeaf87747912a6c2404c383a416b07233c748.tar.gz external_llvm-86eeeaf87747912a6c2404c383a416b07233c748.tar.bz2 |
Delete dead code.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100981 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/IVUsers.cpp')
-rw-r--r-- | lib/Analysis/IVUsers.cpp | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/lib/Analysis/IVUsers.cpp b/lib/Analysis/IVUsers.cpp index c821cc9..78de8c6 100644 --- a/lib/Analysis/IVUsers.cpp +++ b/lib/Analysis/IVUsers.cpp @@ -36,32 +36,6 @@ Pass *llvm::createIVUsersPass() { return new IVUsers(); } -/// CollectSubexprs - Split S into subexpressions which can be pulled out into -/// separate registers. -static void CollectSubexprs(const SCEV *S, - SmallVectorImpl<const SCEV *> &Ops, - ScalarEvolution &SE) { - if (const SCEVAddExpr *Add = dyn_cast<SCEVAddExpr>(S)) { - // Break out add operands. - for (SCEVAddExpr::op_iterator I = Add->op_begin(), E = Add->op_end(); - I != E; ++I) - CollectSubexprs(*I, Ops, SE); - return; - } else if (const SCEVAddRecExpr *AR = dyn_cast<SCEVAddRecExpr>(S)) { - // Split a non-zero base out of an addrec. - if (!AR->getStart()->isZero()) { - CollectSubexprs(AR->getStart(), Ops, SE); - CollectSubexprs(SE.getAddRecExpr(SE.getIntegerSCEV(0, AR->getType()), - AR->getStepRecurrence(SE), - AR->getLoop()), Ops, SE); - return; - } - } - - // Otherwise use the value itself. - Ops.push_back(S); -} - /// isInteresting - Test whether the given expression is "interesting" when /// used by the given expression, within the context of analyzing the /// given loop. |