This is an archive of the discontinued LLVM Phabricator instance.

[AMDGPU] simplifyI24 - replace GetDemandedBits with SimplifyMultipleUseDemandedBits
ClosedPublic

Authored by RKSimon on Feb 19 2020, 11:41 AM.

Details

Summary

GetDemandedBits mostly just calls SimplifyMultipleUseDemandedBits now, but it does a very blunt constant simplification that SimplifyMultipleUseDemandedBits avoids.

I think the changes in constants are correct (sign extended immediates are good?), otherwise we should really be handling this through ShrinkDemandedConstant/targetShrinkDemandedConstant.

Diff Detail

Event Timeline

RKSimon created this revision.Feb 19 2020, 11:41 AM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 19 2020, 11:41 AM
arsenm accepted this revision.Feb 19 2020, 1:07 PM

These are code size improvements

This revision is now accepted and ready to land.Feb 19 2020, 1:07 PM
This revision was automatically updated to reflect the committed changes.