Fix OptimizeMax to handle an odd case where one of the max operands
authorDan Gohman <gohman@apple.com>
Tue, 22 Jun 2010 23:07:13 +0000 (23:07 +0000)
committerDan Gohman <gohman@apple.com>
Tue, 22 Jun 2010 23:07:13 +0000 (23:07 +0000)
commitcaf71ab4735d6b80300cf123a8c3c0759d2e2873
treede84a2c2f3627c0fc221b534de15f4ef97abd29c
parent0caca3967b6547a9c97bd5e10ee3babb345a9979
Fix OptimizeMax to handle an odd case where one of the max operands
is another max which folds. This fixes PR7454.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@106594 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/LoopStrengthReduce.cpp
test/CodeGen/X86/optimize-max-3.ll