Re-apply r73718, now that the fix in r73787 is in, and add a
authorDan Gohman <gohman@apple.com>
Fri, 19 Jun 2009 23:23:27 +0000 (23:23 +0000)
committerDan Gohman <gohman@apple.com>
Fri, 19 Jun 2009 23:23:27 +0000 (23:23 +0000)
commit2781f30eac8647552638246c28ab07dd0fc2c560
treec5cbbcf6d8cf8a222b75cf30aef9393612c72cc8
parent5090f19f090e3dc33b0bc11be60ef3781a8217e4
Re-apply r73718, now that the fix in r73787 is in, and add a
hand-crafted testcase which demonstrates the bug that was exposed
in 254.gap.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73793 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/LoopStrengthReduce.cpp
test/CodeGen/X86/optimize-max-0.ll
test/CodeGen/X86/optimize-max-1.ll
test/CodeGen/X86/optimize-max-2.ll [new file with mode: 0644]