This is an archive of the discontinued LLVM Phabricator instance.

[AArch64][GlobalISel] Use wzr/xzr for 16 and 32 bit stores of zero
ClosedPublic

Authored by paquette on Jul 24 2020, 5:06 PM.

Details

Summary

We weren't performing this optimization on 16 and 32 bit stores. SDAG happily does this though.

e.g. https://godbolt.org/z/cWocKr

This saves about 0.2% in code size on CTMark at -O3.

Diff Detail

Event Timeline

paquette created this revision.Jul 24 2020, 5:06 PM
aemerson accepted this revision.Jul 24 2020, 5:07 PM

LGTM.

This revision is now accepted and ready to land.Jul 24 2020, 5:07 PM
This revision was automatically updated to reflect the committed changes.