Generalize LSR's OptimizeSMax to handle unsigned max tests as well
authorDan Gohman <gohman@apple.com>
Thu, 18 Jun 2009 20:23:18 +0000 (20:23 +0000)
committerDan Gohman <gohman@apple.com>
Thu, 18 Jun 2009 20:23:18 +0000 (20:23 +0000)
commit4658c9b4eaa89f00f682a7510b83e7d4895fe18f
tree405714796eb5e1f98aebcbdd09c5509bd96f98b0
parent30fb512e95f6a01f0c9c3426c2263ee0458de8e8
Generalize LSR's OptimizeSMax to handle unsigned max tests as well
as signed max tests. Along with r73717, this helps CodeGen avoid
emitting code for a maximum operation for this class of loop.

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