This is an archive of the discontinued LLVM Phabricator instance.

[AMDGPU] Add CL option for max-ilp scheduler.
ClosedPublic

Authored by kerbowa on Aug 2 2022, 2:21 PM.

Details

Summary

When compiling for multiple targets the scheduler that is selected via the
-misched option is applied globally. This patch adds a target CL option instead.

Diff Detail

Event Timeline

kerbowa created this revision.Aug 2 2022, 2:21 PM
Herald added a project: Restricted Project. · View Herald TranscriptAug 2 2022, 2:21 PM
kerbowa requested review of this revision.Aug 2 2022, 2:21 PM
Herald added a project: Restricted Project. · View Herald TranscriptAug 2 2022, 2:21 PM

I do not follow, what's the difference in passing -mllvm -misched vs -mllvm -another-option?

I do not follow, what's the difference in passing -mllvm -misched vs -mllvm -another-option?

-mllvm -misched=gcn-max-ilp will use our scheduler for x86 with HIP.

rampitec accepted this revision.Aug 2 2022, 4:40 PM

LGTM

This revision is now accepted and ready to land.Aug 2 2022, 4:40 PM
This revision was automatically updated to reflect the committed changes.