This is an archive of the discontinued LLVM Phabricator instance.

Use v16i8 rather than v2i64 as the VT for memset expansion on AArch64.
ClosedPublic

Authored by resistor on Aug 19 2021, 1:06 AM.

Details

Summary

This allows the instruction selector to realize that it can directly
broadcast the low byte of the memset value, rather than replicating
it to a 64-bit GPR before broadcasting.

This fixes PR50985.

Diff Detail

Event Timeline

resistor created this revision.Aug 19 2021, 1:06 AM
resistor requested review of this revision.Aug 19 2021, 1:06 AM
Herald added a project: Restricted Project. · View Herald TranscriptAug 19 2021, 1:06 AM
danlark accepted this revision.Aug 19 2021, 1:32 AM

Thanks, LGTM!

This revision is now accepted and ready to land.Aug 19 2021, 1:32 AM