This is an archive of the discontinued LLVM Phabricator instance.

[X86][mem-fold] Use the generated memory folding table
ClosedPublic

Authored by skan on Apr 4 2023, 6:27 AM.

Diff Detail

Event Timeline

skan created this revision.Apr 4 2023, 6:27 AM
Herald added a project: Restricted Project. · View Herald TranscriptApr 4 2023, 6:27 AM
skan requested review of this revision.Apr 4 2023, 6:27 AM
Herald added a project: Restricted Project. · View Herald TranscriptApr 4 2023, 6:27 AM
skan updated this revision to Diff 510785.Apr 4 2023, 6:37 AM

cmp -> diff

skan updated this revision to Diff 511012.Apr 5 2023, 1:35 AM

Add comments

RKSimon added inline comments.Apr 5 2023, 1:38 AM
llvm/lib/Target/X86/CMakeLists.txt
21

Looks like the rest of the table is sorted?

skan marked an inline comment as done.Apr 5 2023, 3:02 AM
skan added inline comments.
llvm/lib/Target/X86/CMakeLists.txt
21

Good question, the tables are sorted by enum of the instruction. I added a comment in https://github.com/llvm/llvm-project/blob/main/llvm/utils/TableGen/X86FoldTablesEmitter.cpp#L112 to explain this.

yubing accepted this revision.Apr 5 2023, 10:11 PM

LGTM

This revision is now accepted and ready to land.Apr 5 2023, 10:11 PM
skan updated this revision to Diff 511368.Apr 6 2023, 4:38 AM
skan marked an inline comment as done.

Refine comments

This revision was landed with ongoing or failed builds.Apr 6 2023, 4:49 AM
This revision was automatically updated to reflect the committed changes.
chapuni added a subscriber: chapuni.Apr 6 2023, 9:15 AM
llvm/lib/Target/X86/X86MemFoldTables.inc