commit | 246a4c60c28f98b7fc42a3436a5c4ec1d7482701 | [log] [tgz] |
---|---|---|
author | Nikita Popov <nikita.ppv@gmail.com> | Wed Nov 28 16:36:52 2018 +0000 |
committer | Nikita Popov <nikita.ppv@gmail.com> | Wed Nov 28 16:36:52 2018 +0000 |
tree | be0234cbf8fef849cb41381c123d6c4c1cf28085 | |
parent | 03c198b24f6063c760912ba05f62f55da9f591b9 [diff] |
[InstCombine] Canonicalize const arg for saturating adds If a saturating add intrinsic has one constant argument, make sure it is on the RHS. This will simplify further transformations. This change is part of https://reviews.llvm.org/D54534. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@347769 91177308-0d34-0410-b5e6-96231b3b80d8