diff options
author | Andrew Trick <atrick@apple.com> | 2011-08-10 04:22:26 +0000 |
---|---|---|
committer | Andrew Trick <atrick@apple.com> | 2011-08-10 04:22:26 +0000 |
commit | bddb7f82103deb226baa6793f41c5961661167e7 (patch) | |
tree | cbdd86ff1b4ac7c67828e0880bfc573f087b9d29 /lib/Transforms/Scalar | |
parent | ea23daa4461de489abbfd54a9641091862945f3e (diff) | |
download | external_llvm-bddb7f82103deb226baa6793f41c5961661167e7.zip external_llvm-bddb7f82103deb226baa6793f41c5961661167e7.tar.gz external_llvm-bddb7f82103deb226baa6793f41c5961661167e7.tar.bz2 |
Cleanup. Make ScalarEvolution an explicit argument of the
SimplifyIndVar utility since it is required.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@137202 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/Scalar')
-rw-r--r-- | lib/Transforms/Scalar/IndVarSimplify.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Transforms/Scalar/IndVarSimplify.cpp b/lib/Transforms/Scalar/IndVarSimplify.cpp index 14f995b..4cbc9d9 100644 --- a/lib/Transforms/Scalar/IndVarSimplify.cpp +++ b/lib/Transforms/Scalar/IndVarSimplify.cpp @@ -1192,7 +1192,7 @@ void IndVarSimplify::SimplifyAndExtend(Loop *L, // Information about sign/zero extensions of CurrIV. WideIVVisitor WIV(SE, TD); - Changed |= simplifyUsersOfIV(CurrIV, &LPM, DeadInsts, &WIV); + Changed |= simplifyUsersOfIV(CurrIV, SE, &LPM, DeadInsts, &WIV); if (WIV.WI.WidestNativeType) { WideIVMap[CurrIV] = WIV.WI; @@ -1831,7 +1831,7 @@ bool IndVarSimplify::runOnLoop(Loop *L, LPPassManager &LPM) { // Eliminate redundant IV users. if (!DisableIVRewrite) - Changed |= simplifyIVUsers(IU, &LPM, DeadInsts); + Changed |= simplifyIVUsers(IU, SE, &LPM, DeadInsts); // Eliminate redundant IV cycles. if (DisableIVRewrite) |