This is an archive of the discontinued LLVM Phabricator instance.

[x86] add load folding restriction to pushAddIntoCmovOfConsts()
ClosedPublic

Authored by spatel on Feb 21 2022, 1:30 PM.

Details

Summary

With only a load-fold the diffs look neutral. If there's a load and store (rmw) fold opportunity as shown in the test based on #53862, then we end up with an extra instruction.

Diff Detail

Event Timeline

spatel created this revision.Feb 21 2022, 1:30 PM
spatel requested review of this revision.Feb 21 2022, 1:30 PM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 21 2022, 1:30 PM
spatel edited the summary of this revision. (Show Details)Feb 21 2022, 1:33 PM
spatel added reviewers: RKSimon, craig.topper, pengfei.
pengfei accepted this revision.Feb 21 2022, 10:43 PM

Tests LGTM.

This revision is now accepted and ready to land.Feb 21 2022, 10:43 PM
RKSimon accepted this revision.Feb 22 2022, 12:24 AM

LGTM - cheers

This revision was landed with ongoing or failed builds.Feb 22 2022, 5:04 AM
This revision was automatically updated to reflect the committed changes.