commit | d7d68723b858192e39f2e59f989c69d179047788 | [log] [tgz] |
---|---|---|
author | Gil Rapaport <gil.rapaport@intel.com> | Tue Jun 26 05:31:18 2018 +0000 |
committer | Gil Rapaport <gil.rapaport@intel.com> | Tue Jun 26 05:31:18 2018 +0000 |
tree | 2e2681672945d0564f4dd9d5acf412489e03b569 | |
parent | 02ed557da0c06d89bc65e93350e468576b91a97c [diff] |
[InstCombine] (A + 1) + (B ^ -1) --> A - B Turn canonicalized subtraction back into (-1 - B) and combine it with (A + 1) into (A - B). This is similar to the folding already done for (B ^ -1) + Const into (-1 + Const) - B. Differential Revision: https://reviews.llvm.org/D48535 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@335579 91177308-0d34-0410-b5e6-96231b3b80d8