Revert r251050 to fix miscompile when running Clang -O1
authorRichard Trieu <rtrieu@google.com>
Thu, 5 Nov 2015 23:20:36 +0000 (23:20 +0000)
committerRichard Trieu <rtrieu@google.com>
Thu, 5 Nov 2015 23:20:36 +0000 (23:20 +0000)
commit59970e6f528230b1d97a95facc5c4a281dcc2535
tree9d1955b40703838d3698187e5679c6bc12e725f9
parent2c641c0a8fd1961383cd3e1f47f1508e389d631d
Revert r251050 to fix miscompile when running Clang -O1

See bug for details: https://llvm.org/bugs/show_bug.cgi?id=25421
Some comparisons were incorrectly replaced with a constant value.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@252231 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Analysis/ScalarEvolution.h
lib/Analysis/ScalarEvolution.cpp
test/Transforms/IndVarSimplify/eliminate-comparison.ll