This is an archive of the discontinued LLVM Phabricator instance.

[SelectionDAG] Improve SimplifyDemandedBits to SimplifyDemandedVectorElts simplification
ClosedPublic

Authored by RKSimon on Nov 20 2018, 9:38 AM.

Details

Summary

D52935 introduced the ability for SimplifyDemandedBits to call SimplifyDemandedVectorElts through BITCASTs if the demanded bit mask entirely covered the sub element.

This patch relaxes this to demanding an element if we need any bit from it.

Diff Detail

Repository
rL LLVM

Event Timeline

RKSimon created this revision.Nov 20 2018, 9:38 AM
rampitec accepted this revision.Nov 26 2018, 12:00 PM

LGTM (for AMDGPU tests and core).

This revision is now accepted and ready to land.Nov 26 2018, 12:00 PM

ping - any more comments?

spatel accepted this revision.Nov 29 2018, 5:53 AM

LGTM for x86.

This revision was automatically updated to reflect the committed changes.