[llvm-commits] [llvm] r89713 - /llvm/trunk/lib/Analysis/IVUsers.cpp
Evan Cheng
evan.cheng at apple.com
Wed Nov 25 13:01:14 PST 2009
Test case?
Evan
On Nov 23, 2009, at 3:25 PM, Jim Grosbach wrote:
> Author: grosbach
> Date: Mon Nov 23 17:25:54 2009
> New Revision: 89713
>
> URL: http://llvm.org/viewvc/llvm-project?rev=89713&view=rev
> Log:
> enable iv-users simplification by default
>
> Modified:
> llvm/trunk/lib/Analysis/IVUsers.cpp
>
> Modified: llvm/trunk/lib/Analysis/IVUsers.cpp
> URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Analysis/IVUsers.cpp?rev=89713&r1=89712&r2=89713&view=diff
>
> ==============================================================================
> --- llvm/trunk/lib/Analysis/IVUsers.cpp (original)
> +++ llvm/trunk/lib/Analysis/IVUsers.cpp Mon Nov 23 17:25:54 2009
> @@ -24,7 +24,6 @@
> #include "llvm/ADT/STLExtras.h"
> #include "llvm/Support/Debug.h"
> #include "llvm/Support/raw_ostream.h"
> -#include "llvm/Support/CommandLine.h"
> #include <algorithm>
> using namespace llvm;
>
> @@ -32,10 +31,6 @@
> static RegisterPass<IVUsers>
> X("iv-users", "Induction Variable Users", false, true);
>
> -static cl::opt<bool>
> -SimplifyIVUsers("simplify-iv-users", cl::Hidden, cl::init(false),
> - cl::desc("Restrict IV Users to loop-invariant strides"));
> -
> Pass *llvm::createIVUsersPass() {
> return new IVUsers();
> }
> @@ -214,8 +209,7 @@
> return false; // Non-reducible symbolic expression, bail out.
>
> // Keep things simple. Don't touch loop-variant strides.
> - if (SimplifyIVUsers && !Stride->isLoopInvariant(L)
> - && L->contains(I->getParent()))
> + if (!Stride->isLoopInvariant(L) && L->contains(I->getParent()))
> return false;
>
> SmallPtrSet<Instruction *, 4> UniqueUsers;
>
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
More information about the llvm-commits
mailing list