This is an archive of the discontinued LLVM Phabricator instance.

[AMDGPU] Fix ISD perm compute known bits wrong.
AbandonedPublic

Authored by bcl5980 on Jul 4 2023, 9:04 PM.

Details

Reviewers
foad
arsenm
rampitec
jrbyrnes
Group Reviewers
Restricted Project
Summary

SelBits can be 7.

Diff Detail

Event Timeline

bcl5980 created this revision.Jul 4 2023, 9:04 PM
Herald added a project: Restricted Project. · View Herald TranscriptJul 4 2023, 9:04 PM
bcl5980 requested review of this revision.Jul 4 2023, 9:04 PM
Herald added a project: Restricted Project. · View Herald TranscriptJul 4 2023, 9:04 PM
foad added a comment.Jul 5 2023, 12:17 AM

LGTM but can this be tested?

arsenm added reviewers: Restricted Project, jrbyrnes.Jul 5 2023, 5:16 AM

It also LGTM, but I wonder why we aren't handling masks 0x08 - 0x0b here?

arsenm requested changes to this revision.Jul 11 2023, 12:24 PM

Should get a test

This revision now requires changes to proceed.Jul 11 2023, 12:24 PM
bcl5980 abandoned this revision.Jul 13 2023, 12:09 AM

I'm sorry I have no time to continue this work. So I will abandon this. Anyone who want to continue work on this is fine.

foad added inline comments.Jul 13 2023, 9:13 AM
llvm/lib/Target/AMDGPU/AMDGPUISelLowering.cpp
5004

I can't find any test cases where handling PERM here has any effect. I've tested it on a large corpus of graphics shaders.