Page MenuHomePhabricator

[X86] X86CallFrameOptimization - generalize slow push code path

Authored by RKSimon on Mon, Mar 16, 10:40 AM.



Replace the explicit isAtom() || isSLM() test with the more general (and more specific) slowTwoMemOps() check to avoid the use of the PUSHrmm push from memory case.

This is actually very tricky to test in anything but quite complex code, but the atomic-idempotent.ll tests seem to be the most straightforward to use. If people are happy with me using these tests I can add the extra target checks as a pre-commit.

Diff Detail

Event Timeline

RKSimon created this revision.Mon, Mar 16, 10:40 AM
Herald added a project: Restricted Project. · View Herald TranscriptMon, Mar 16, 10:40 AM
Herald added subscribers: jfb, hiraditya. · View Herald Transcript
craig.topper added inline comments.Tue, Mar 17, 4:14 PM

Why did SLM/GLM/KNL lose sse2, but atom got to keep it?

RKSimon updated this revision to Diff 252949.Thu, Mar 26, 12:37 PM

disabled sse2 on atom to match the other targets

RKSimon marked an inline comment as done.Thu, Mar 26, 12:38 PM
RKSimon added inline comments.

Disabling sse2 was more of a technicality to force the SLM-like targets to match, but I've set atom to follow this as well to stop the fence insertion

This revision is now accepted and ready to land.Sat, Mar 28, 1:43 PM
This revision was automatically updated to reflect the committed changes.