Fold certain additions through selects (and their compares) so as to eliminate subtra...
authorChristopher Lamb <christopher.lamb@gmail.com>
Tue, 18 Dec 2007 09:34:41 +0000 (09:34 +0000)
committerChristopher Lamb <christopher.lamb@gmail.com>
Tue, 18 Dec 2007 09:34:41 +0000 (09:34 +0000)
commit30f017ad898bd86415aab001b45b5ac1373fa882
tree684d8145ff886cb254534894638de7e7b309f769
parentbeec823d4bba22b1c0c6658d2b3e71cd64a70e2e
Fold certain additions through selects (and their compares) so as to eliminate subtractions. This code is often produced by the SMAX expansion in SCEV.

This implements test/Transforms/InstCombine/2007-12-18-AddSelCmpSub.ll

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@45158 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/README.txt
lib/Transforms/Scalar/InstructionCombining.cpp
test/Transforms/InstCombine/2007-12-18-AddSelCmpSub.ll [new file with mode: 0644]