This is an archive of the discontinued LLVM Phabricator instance.

[X86] Avoid generating inc/dec when slow for x.atomic_store(1 + x.atomic_load())
ClosedPublic

Authored by morisset on Oct 8 2014, 11:52 AM.

Details

Summary

I had forgotten to check for NotSlowIncDec in the patterns that can generate
inc/dec for the above pattern (added in D4796).

Diff Detail

Repository
rL LLVM

Event Timeline

morisset updated this revision to Diff 14588.Oct 8 2014, 11:52 AM
morisset retitled this revision from to [X86] Avoid generating inc/dec when slow for x.atomic_store(1 + x.atomic_load()).
morisset updated this object.
morisset edited the test plan for this revision. (Show Details)
morisset added reviewers: jfb, nadav.
morisset added a subscriber: Unknown Object (MLST).
jfb accepted this revision.Oct 8 2014, 12:07 PM
jfb edited edge metadata.

lgtm

Please edit the message to point out that right now this affects Atom Silvermont, KNL, and SKX.

This revision is now accepted and ready to land.Oct 8 2014, 12:07 PM
morisset closed this revision.Oct 8 2014, 12:48 PM
morisset updated this revision to Diff 14590.

Closed by commit rL219336 (authored by @morisset).