This is an archive of the discontinued LLVM Phabricator instance.

llvm-reduce: Add reduction for custom register masks
ClosedPublic

Authored by arsenm on Jun 22 2022, 2:56 PM.

Details

Summary

I have a register allocator failure that only reproduces with IPRA
enabled, and requires the specific regmask if I want to only run the
one relevant pass. The printed custom regmask is enormous and I would
like to reduce it.

This reduces each individual bit in the mask, but it would probably be
better to start at register units and clear all aliasing fields at a
time. This would require stricter verification that all aliasing bits
are set in regmasks (although I would prefer to switch regmasks to use
register units in the first place).

Diff Detail

Event Timeline

arsenm created this revision.Jun 22 2022, 2:56 PM
Herald added a project: Restricted Project. · View Herald TranscriptJun 22 2022, 2:56 PM
Herald added a subscriber: mgorny. · View Herald Transcript
arsenm requested review of this revision.Jun 22 2022, 2:56 PM
Herald added a project: Restricted Project. · View Herald TranscriptJun 22 2022, 2:56 PM
Herald added a subscriber: wdng. · View Herald Transcript
MatzeB accepted this revision.Jul 18 2022, 10:18 AM

LGTM

This revision is now accepted and ready to land.Jul 18 2022, 10:18 AM