This is an archive of the discontinued LLVM Phabricator instance.

[ARM64] Prefer generation of bzero on Darwin only
ClosedPublic

Authored by bsmith on May 1 2014, 6:12 AM.

Details

Summary

This patch modifies the behavior of the ARM64 backend to only prefer generating bzero for zero memsets when the target is Darwin, since not all target libraries will have this function. This matches the behavior of x86 (almost, x86 is MacOSX >= 10.6 however for ARM64 I believe that just checking for Darwin should be sufficient), no other backends use bzero.

Diff Detail

Event Timeline

bsmith updated this revision to Diff 9012.May 1 2014, 6:12 AM
bsmith retitled this revision from to [ARM64] Prefer generation of bzero on Darwin only.
bsmith updated this object.
bsmith edited the test plan for this revision. (Show Details)
bsmith added a reviewer: t.p.northover.
bsmith set the repository for this revision to rL LLVM.
bsmith added a subscriber: Unknown Object (MLST).
t.p.northover edited edge metadata.May 1 2014, 6:16 AM

Hi Bradley,

This looks fine to me.

Cheers.

Tim.

bsmith accepted this revision.May 1 2014, 6:19 AM
bsmith added a reviewer: bsmith.
This revision is now accepted and ready to land.May 1 2014, 6:19 AM
bsmith closed this revision.May 1 2014, 6:19 AM