Revert "[IndVarSimplify] Rewrite loop exit values with their initial values from...
authorTobias Grosser <tobias@grosser.es>
Tue, 3 Nov 2015 07:14:39 +0000 (07:14 +0000)
committerTobias Grosser <tobias@grosser.es>
Tue, 3 Nov 2015 07:14:39 +0000 (07:14 +0000)
commit0efe7b620eab5d3a7b4bce88769eaa8ad42880d9
tree4f8bafa44b2721ea31994f8116f16e6f73920f3b
parente5065bdcd764a883c2e7e8169993c0d2d6bf7144
Revert "[IndVarSimplify] Rewrite loop exit values with their initial values from loop preheader"

Commit 251839 triggers miscompiles on some bots:

http://lab.llvm.org:8011/builders/perf-x86_64-penryn-O3-polly-fast/builds/13723

(The commit is listed in 13722, but due to an existing failure introduced in
13721 and reverted in 13723 the failure is only visible in 13723)

To verify r251839 is indeed the only change that triggered the buildbot failures
and to ensure the buildbots remain green while investigating I temporarily
revert this commit. At the current state it is unclear if this commit introduced
some miscompile or if it only exposed code to Polly that is subsequently
miscompiled by Polly.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@251901 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/IndVarSimplify.cpp
test/Transforms/IndVarSimplify/rewrite-loop-exit-value.ll [deleted file]
test/Transforms/LoopUnroll/scevunroll.ll