This is an archive of the discontinued LLVM Phabricator instance.

[AArch64][CGP] Sink zext feeding stxr/stlxr into the same block.
ClosedPublic

Authored by ab on May 21 2015, 6:41 PM.

Details

Summary

The usual CodeGenPrepare trickery, this time on a target-specific intrinsic.

Without this, the expansion of atomics will usually have the zext be hoisted out of the loop, defeating the various patterns we have to catch precisely this case.

Diff Detail

Event Timeline

ab updated this revision to Diff 26301.May 21 2015, 6:41 PM
ab retitled this revision from to [AArch64][CGP] Sink zext feeding stxr/stlxr into the same block..
ab updated this object.
ab edited the test plan for this revision. (Show Details)
ab added reviewers: qcolombet, t.p.northover.
ab added a subscriber: Unknown Object (MLST).
qcolombet accepted this revision.May 22 2015, 11:44 AM
qcolombet edited edge metadata.

Hi Ahmed,

LGTM.

Thanks,
-Quentin

This revision is now accepted and ready to land.May 22 2015, 11:44 AM
This revision was automatically updated to reflect the committed changes.