Skip to content
Commit 7cd48100 authored by Jakub Kuderski's avatar Jakub Kuderski
Browse files

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

llvm-svn: 246997
parent d96d89f6
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment