This is an archive of the discontinued LLVM Phabricator instance.

[X86] Update tests for znver3
ClosedPublic

Authored by GGanesh on Dec 7 2020, 8:49 PM.

Details

Summary

I will be submitting a series of patches for AMD family 19H architecture.
This patch adds few znver3 tests to clang that are missing.

Diff Detail

Event Timeline

GGanesh created this revision.Dec 7 2020, 8:49 PM
GGanesh requested review of this revision.Dec 7 2020, 8:49 PM
Herald added a project: Restricted Project. · View Herald TranscriptDec 7 2020, 8:49 PM
Herald added subscribers: llvm-commits, Restricted Project, cfe-commits. · View Herald Transcript

Please upload the patch with full context

craig.topper added inline comments.
clang/lib/Basic/Targets/X86.cpp
548 ↗(On Diff #310083)

Why is this being deleted?

1339 ↗(On Diff #310083)

Same here?

compiler-rt/lib/builtins/cpu_model.c
480 ↗(On Diff #310083)

I thought this code was already added to compiler-rt by @bkramer

llvm/test/CodeGen/X86/cpus-amd.ll
30 ↗(On Diff #310083)

Why deleted?

This patch doesn't look like it is taking into account the existing (albeit limited) support for znver3 - it looks like a very bad merge imo.

It'd make much more sense to split this into several smaller incremental patches:

1 - cleanup any missing basic znver3 handling, building on the work that @bkramer has already done
2 - patches for the new INVLPGB/TLBSYNC/SNP instructions
3 - new znver3 scheduler model

it looks like a very bad merge imo.

Yep, Thank you! I will post smaller incremental patches.

GGanesh updated this revision to Diff 314703.Jan 5 2021, 1:15 PM
GGanesh edited the summary of this revision. (Show Details)

Updaing the patch so that the simplified patch adds only few missing znver3 tests. The subsequent patches will comprehensively enable other znver3 features.

This revision is now accepted and ready to land.Jan 5 2021, 10:54 PM
RKSimon accepted this revision.Jan 6 2021, 2:07 AM

LGTM - cheers

Patch title should be adjusted I think

GGanesh retitled this revision from [X86] AMD Znver3 (Family 19H) Enablement to [X86] Update tests for znver3.Jan 6 2021, 2:29 AM
This revision was automatically updated to reflect the committed changes.