commit | d42deae8d8e0fceff75fa5f827f1b82c7af41288 | [log] [tgz] |
---|---|---|
author | Jakub Kuderski <jakub.kuderski@arm.com> | Thu Sep 10 11:31:20 2015 +0000 |
committer | Jakub Kuderski <jakub.kuderski@arm.com> | Thu Sep 10 11:31:20 2015 +0000 |
tree | 90c3d969ba04b4b535620258e8ec7f0bbd6b09c8 | |
parent | 32e95cb90f61daf73034fe613df81f379266724e [diff] |
There is a trunc(lshr (zext A), Cst) optimization in InstCombineCasts that removes cast by performing the lshr on smaller types. However, currently there is no trunc(lshr (sext A), Cst) variant. This patch add such optimization by transforming trunc(lshr (sext A), Cst) to ashr A, Cst. Differential Revision: http://reviews.llvm.org/D12520 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@247271 91177308-0d34-0410-b5e6-96231b3b80d8