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 | e629d008fbd6f8bd75d8b22240d5a53c9342f980 (patch) | |
tree | b68f9d8ac8dfe2d919b4e2953160618de4d5ef43 /llvm/lib/Transforms/Scalar | |
parent | 9a877fef910f3190dcdb4111aa5959de8debedd1 (diff) | |
download | bcm5719-llvm-e629d008fbd6f8bd75d8b22240d5a53c9342f980.tar.gz bcm5719-llvm-e629d008fbd6f8bd75d8b22240d5a53c9342f980.zip |
Cleanup. Make ScalarEvolution an explicit argument of the
SimplifyIndVar utility since it is required.
llvm-svn: 137202
Diffstat (limited to 'llvm/lib/Transforms/Scalar')
-rw-r--r-- | llvm/lib/Transforms/Scalar/IndVarSimplify.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/Scalar/IndVarSimplify.cpp b/llvm/lib/Transforms/Scalar/IndVarSimplify.cpp index 14f995bec26..4cbc9d9c459 100644 --- a/llvm/lib/Transforms/Scalar/IndVarSimplify.cpp +++ b/llvm/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) |