commit | 30f017ad898bd86415aab001b45b5ac1373fa882 | [log] [tgz] |
---|---|---|
author | Christopher Lamb <christopher.lamb@gmail.com> | Tue Dec 18 09:34:41 2007 +0000 |
committer | Christopher Lamb <christopher.lamb@gmail.com> | Tue Dec 18 09:34:41 2007 +0000 |
tree | 684d8145ff886cb254534894638de7e7b309f769 | |
parent | beec823d4bba22b1c0c6658d2b3e71cd64a70e2e [diff] |
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