Page MenuHomePhabricator

[DAG] SimplifyDemandedBits - peek through SHL if we only demand sign bits.

Authored by RKSimon on May 30 2020, 7:39 AM.



If we're only demanding the (shifted) sign bits of the shift source value, then we can use the value directly.

This handles SimplifyDemandedBits/SimplifyMultipleUseDemandedBits for both ISD::SHL and X86ISD::VSHLI.

Diff Detail

Event Timeline

RKSimon created this revision.May 30 2020, 7:39 AM
Herald added a project: Restricted Project. · View Herald TranscriptMay 30 2020, 7:39 AM
arsenm accepted this revision.Jun 2 2020, 3:43 PM
This revision is now accepted and ready to land.Jun 2 2020, 3:43 PM
This revision was automatically updated to reflect the committed changes.