HomePhabricator

[InstCombine] Consider more cases where SimplifyDemandedUseBits does not…

Authored by aaboud on Aug 25 2017, 4:07 AM.

Description

[InstCombine] Consider more cases where SimplifyDemandedUseBits does not convert AShr to LShr. There are cases where AShr have better chance to be optimized than LShr, especially when the demanded bits are not known to be Zero, and also known to be similar to the sign bit.

Differential Revision: https://reviews.llvm.org/D36936

llvm-svn: 311773