This is an archive of the discontinued LLVM Phabricator instance.

[TargetLowering] Improve SimplifyDemandedVectorElts/SimplifyDemandedBits support
ClosedPublic

Authored by RKSimon on Nov 18 2018, 3:10 PM.

Details

Summary

For bitcast nodes from larger element types, add the ability for SimplifyDemandedVectorElts to call SimplifyDemandedBits by merging the elts mask to a bits mask.

I've raised https://bugs.llvm.org/show_bug.cgi?id=39689 to deal with the few places where SimplifyDemandedBits's lack of vector handling is a problem.

Diff Detail

Repository
rL LLVM

Event Timeline

RKSimon created this revision.Nov 18 2018, 3:10 PM
RKSimon updated this revision to Diff 174614.Nov 19 2018, 7:39 AM

Use APInt::setBits instead of APInt::insertBits

Added TODO comment highlighting shuffle regression

spatel accepted this revision.Nov 19 2018, 9:59 AM

LGTM

This revision is now accepted and ready to land.Nov 19 2018, 9:59 AM
This revision was automatically updated to reflect the committed changes.