This is an archive of the discontinued LLVM Phabricator instance.

[NFC] Add option to disable the scalarizer pass.
AbandonedPublic

Authored by tsymalla on Aug 2 2022, 3:11 AM.

Details

Reviewers
foad
piotr
Summary

This patch adds a new CLI option, which can be used to
disable the scalarizer pass globally.

We found that disabling the scalarizer pass helps with
generating v_pk_* instructions in the AMDGPU backend,
therefore this option should help with experiments which
lead to better understanding of the impact of running the
scalarizer pass in such cases.

Diff Detail

Event Timeline

tsymalla created this revision.Aug 2 2022, 3:11 AM
Herald added a project: Restricted Project. · View Herald TranscriptAug 2 2022, 3:11 AM
Herald added a subscriber: hiraditya. · View Herald Transcript
tsymalla requested review of this revision.Aug 2 2022, 3:11 AM
Herald added a project: Restricted Project. · View Herald TranscriptAug 2 2022, 3:11 AM
tsymalla edited the summary of this revision. (Show Details)Aug 2 2022, 3:12 AM
foad added a comment.Aug 2 2022, 3:22 AM

I think this would be better as an LLPC option that controls whether this pass is added to LLPC's optimization pass pipeline. LLVM doesn't generally provide command line options to enable/disable every single pass.

tsymalla abandoned this revision.Aug 2 2022, 4:26 AM

Will add the change as LLPC change.