Generalize LSR's OptimizeMax to handle the new kinds of max expressions
authorDan Gohman <gohman@apple.com>
Sat, 24 Apr 2010 03:13:44 +0000 (03:13 +0000)
committerDan Gohman <gohman@apple.com>
Sat, 24 Apr 2010 03:13:44 +0000 (03:13 +0000)
commit1d367988e21bb1b4e8346877f8fa377dff194c29
treecb0953ec9ece04f795994b7df064445324229413
parent9f93d30a26ae9928f886ef7271efeafcea2a00a6
Generalize LSR's OptimizeMax to handle the new kinds of max expressions
that indvars may use, now that indvars is recognizing le and ge loops.

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