This is an archive of the discontinued LLVM Phabricator instance.

AMDGPU: Fold away mbcnt.hi in wave32 mode
ClosedPublic

Authored by arsenm on Jun 29 2023, 7:15 AM.

Details

Reviewers
b-sumner
sameerds
foad
yaxunl
Group Reviewers
Restricted Project
Summary

This will allow libraries to drop some of the special casing based on
wave size.

Diff Detail

Event Timeline

arsenm created this revision.Jun 29 2023, 7:15 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 29 2023, 7:15 AM
arsenm requested review of this revision.Jun 29 2023, 7:15 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 29 2023, 7:15 AM
Herald added a subscriber: wdng. · View Herald Transcript
foad accepted this revision.Jun 29 2023, 7:37 AM
foad added inline comments.
llvm/lib/Target/AMDGPU/AMDGPUInstCombineIntrinsic.cpp
906

Nit: I find the comment slightly misleading, since it suggests to me that something is being ANDed with exec which is not true. Maybe say something like "ThreadPosition < 32" instead of "exec_hi is all 0"?

This revision is now accepted and ready to land.Jun 29 2023, 7:37 AM