Skip to content
Commit 58ea4eeb 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: 247271
parent 5852e429
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment