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
diff --git a/polly/lib/IndVarSimplify.cpp b/polly/lib/IndVarSimplify.cpp
index d056fb7..5ef95ba 100644
--- a/polly/lib/IndVarSimplify.cpp
+++ b/polly/lib/IndVarSimplify.cpp
@@ -1846,8 +1846,13 @@
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)