commit | f4272d1c3724a474e1aa0abd1d837908926c40c2 | [log] [tgz] |
---|---|---|
author | Craig Topper <craig.topper@gmail.com> | Mon Apr 10 18:09:25 2017 +0000 |
committer | Craig Topper <craig.topper@gmail.com> | Mon Apr 10 18:09:25 2017 +0000 |
tree | 36c5ad3afe8b514d3c2c8a00571d127165758347 | |
parent | 40cf5b3d29adf006cc141c740f80085bcff0e4f8 [diff] |
[InstCombine] Use commutable matchers and m_OneUse in visitSub to shorten code. Add missing test cases. In one case I removed commute handling for a multiply with a constant since we'll eventually get the constant on the right hand side. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@299863 91177308-0d34-0410-b5e6-96231b3b80d8