This is an archive of the discontinued LLVM Phabricator instance.

[AMDGPU] Select build_vector DAG nodes according to the divergence
ClosedPublic

Authored by alex-t on Dec 22 2021, 1:45 PM.

Details

Summary

This change enables divergence-driven instruction selection for the build_vector DAG nodes.
It also enables packed i16 instructions for GFX9.

Diff Detail

Event Timeline

alex-t created this revision.Dec 22 2021, 1:45 PM
alex-t requested review of this revision.Dec 22 2021, 1:45 PM
Herald added a project: Restricted Project. · View Herald TranscriptDec 22 2021, 1:45 PM
Herald added a subscriber: wdng. · View Herald Transcript
alex-t edited the summary of this revision. (Show Details)Dec 22 2021, 1:46 PM
This revision is now accepted and ready to land.Dec 22 2021, 1:54 PM
This revision was landed with ongoing or failed builds.Dec 22 2021, 3:27 PM
This revision was automatically updated to reflect the committed changes.
foad added inline comments.Dec 23 2021, 2:13 AM
llvm/lib/Target/AMDGPU/SIInstructions.td
2463

Does this pattern need to be marked as Uniform?

2468

Does this pattern need to be marked as Divergent?

llvm/test/CodeGen/AMDGPU/divergence-driven-buildvector.ll
1

This file should not be executable.