This is an archive of the discontinued LLVM Phabricator instance.

Fix the macro fusion table for X86 according to Intel optimization manual
ClosedPublic

Authored by skan on Dec 4 2019, 2:11 AM.

Diff Detail

Event Timeline

skan created this revision.Dec 4 2019, 2:11 AM
Herald added a project: Restricted Project. · View Herald TranscriptDec 4 2019, 2:11 AM
courbet accepted this revision.Dec 4 2019, 6:47 AM
courbet marked an inline comment as done.
courbet added inline comments.
llvm/lib/Target/X86/X86MacroFusion.cpp
52

The mr versions looked incorrect indeed.

This revision is now accepted and ready to land.Dec 4 2019, 6:47 AM
craig.topper requested changes to this revision.Dec 4 2019, 7:35 AM

I wanted this to be the full change from the other patch. Including moving this all to X86BaseInfo.h

This revision now requires changes to proceed.Dec 4 2019, 7:35 AM
craig.topper added inline comments.Dec 4 2019, 7:42 AM
llvm/lib/Target/X86/X86MacroFusion.cpp
52

TEST and CMP mr are loads and are supported. Only the AND/ADD/SUB mr were incorrect

courbet added inline comments.Dec 4 2019, 8:36 AM
llvm/lib/Target/X86/X86MacroFusion.cpp
52

Yes, wrong line, sorry. I though I was reading the ALU versions.

skan updated this revision to Diff 232243.Dec 4 2019, 5:46 PM
skan marked an inline comment as done.

I wanted this to be the full change from the other patch. Including moving this all to X86BaseInfo.h

Done

This revision is now accepted and ready to land.Dec 4 2019, 6:05 PM
This revision was automatically updated to reflect the committed changes.