commit | 4fcef69e659907a63721f03d8208581498f9a2ea | [log] [tgz] |
---|---|---|
author | Simon Pilgrim <llvm-dev@redking.me.uk> | Tue Aug 07 09:51:34 2018 +0000 |
committer | Simon Pilgrim <llvm-dev@redking.me.uk> | Tue Aug 07 09:51:34 2018 +0000 |
tree | 094a088a80add36250efd280466ea4b9cf266059 | |
parent | 8a69efc9542247d19e5511f97b510a97b258a61b [diff] |
[TargetLowering] Add support for non-uniform vectors to BuildUDIV This patch refactors the existing TargetLowering::BuildUDIV base implementation to support non-uniform constant vector denominators. It also includes a fold for MULHU by pow2 constants to SRL which can now more readily occur from BuildUDIV. Differential Revision: https://reviews.llvm.org/D49248 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@339121 91177308-0d34-0410-b5e6-96231b3b80d8