IndVarSimplify: Disable simplifyIVUsers

This functionality is not available in LLVM trunk and breaks the compilation of
Polly. This patch fixes the compilation, but may not be enough to recover all
functionality.

llvm-svn: 153318
This commit is contained in:
Tobias Grosser 2012-03-23 08:02:19 +00:00
parent d87492bb8c
commit 3e72197efc
1 changed files with 7 additions and 2 deletions

View File

@ -1846,8 +1846,13 @@ bool PollyIndVarSimplify::runOnLoop(Loop *L, LPPassManager &LPM) {
RewriteLoopExitValues(L, Rewriter);
// Eliminate redundant IV users.
if (EnableIVRewrite)
Changed |= simplifyIVUsers(IU, SE, &LPM, DeadInsts);
// FIXME: Disabled as the function was removed from LLVM trunk. We may get
// along with this, as Polly does not need a lot of simplifications,
// but just a canonical induction variable. In the near future, we
// should remove the need of canonical induction variables all
// together.
//if (EnableIVRewrite)
// Changed |= simplifyIVUsers(IU, SE, &LPM, DeadInsts);
// Eliminate redundant IV cycles.
if (!EnableIVRewrite)