commit | f922d9cfe41112b79ac3cad9f5758f1ff3ad77cc | [log] [tgz] |
---|---|---|
author | Sanjoy Das <sanjoy@playingwithpointers.com> | Tue Feb 24 00:08:41 2015 +0000 |
committer | Sanjoy Das <sanjoy@playingwithpointers.com> | Tue Feb 24 00:08:41 2015 +0000 |
tree | 8f66d161146a0f3a31d4f7344ab707d1b18d4b0a | |
parent | 8d16a81c331e641b12464d32a0c35d819ab1b5ee [diff] |
New instcombine rule: max(~a,~b) -> ~min(a, b) This case is interesting because ScalarEvolutionExpander lowers min(a, b) as ~max(~a,~b). I think the profitability heuristics can be made more clever/aggressive, but this is a start. Differential Revision: http://reviews.llvm.org/D7821 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@230285 91177308-0d34-0410-b5e6-96231b3b80d8