This is an archive of the discontinued LLVM Phabricator instance.

[X86] Remove X86ProcFamilyEnum::IntelSLM
ClosedPublic

Authored by RKSimon on Oct 19 2021, 8:18 AM.

Details

Summary

Replace X86ProcFamilyEnum::IntelSLM enum with a TuningUseSLMArithCosts flag instead, matching what we already do for Goldmont.

This just leaves X86ProcFamilyEnum::IntelAtom to replace with general Tuning/Feature flags and we can finally get rid of the old X86ProcFamilyEnum enum.

Diff Detail

Event Timeline

RKSimon created this revision.Oct 19 2021, 8:18 AM
RKSimon requested review of this revision.Oct 19 2021, 8:18 AM
Herald added a project: Restricted Project. · View Herald TranscriptOct 19 2021, 8:18 AM
pengfei accepted this revision.Oct 20 2021, 1:18 AM

LGTM.

llvm/lib/Target/X86/X86.td
576

Why we call it "arithmetic costs"?

This revision is now accepted and ready to land.Oct 20 2021, 1:18 AM
This revision was landed with ongoing or failed builds.Oct 20 2021, 3:59 AM
This revision was automatically updated to reflect the committed changes.

Thanks @pengfei

llvm/lib/Target/X86/X86.td
576

No reason really, it sort of matched what we did for GLM - UseSLMCosts / UseGLMCosts would be cleaner tbh