commit | 33d83dacf67681924bc8ff25c407610bece8a591 | [log] [tgz] |
---|---|---|
author | Simon Pilgrim <llvm-dev@redking.me.uk> | Thu Feb 07 20:14:43 2019 +0000 |
committer | Simon Pilgrim <llvm-dev@redking.me.uk> | Thu Feb 07 20:14:43 2019 +0000 |
tree | 5d8a0d5bca44a1fefae967b678af664e56834192 | |
parent | c0f816e09cd8447506d1e1eed3f260beb8b36901 [diff] |
[DAGCombiner] (add (umax X, C), -C) --> (usubsat X, C) (PR40111) Move the (add (umax X, C), -C) --> (usubsat X, C) X86 combine into generic DAGCombiner First of a number of saturated arithmetic folds that can be moved out of X86-specific code for PR40111. Differential Revision: https://reviews.llvm.org/D57754 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@353457 91177308-0d34-0410-b5e6-96231b3b80d8