commit | aceaaf0aecb41634ae29940a021745fd98221e63 | [log] [tgz] |
---|---|---|
author | Craig Topper <craig.topper@intel.com> | Mon Nov 06 21:07:22 2017 +0000 |
committer | Craig Topper <craig.topper@intel.com> | Mon Nov 06 21:07:22 2017 +0000 |
tree | c820d9555f3c03bb19977a125d5365b5b8eb4aa5 | |
parent | 82cd943eb1deceb561fb8e7c9ad7c796c883b2d3 [diff] |
[InstCombine] Pull shifts through a select plus binop with constant This pulls shifts through a select+binop with a constant where the select conditionally executes the binop. We already do this for just the binop, but not with the select. This can allow us to get the select closer to other selects to enable removing one. Differential Revision: https://reviews.llvm.org/D39222 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@317510 91177308-0d34-0410-b5e6-96231b3b80d8