Unverified Commit 2b83ceee authored by Mariusz Sikora's avatar Mariusz Sikora Committed by GitHub
Browse files

[AMDGPU][GFX12] Default component broadcast store (#76212)



For image and buffer stores the default behaviour on GFX12 is to set all
unset components to the value of the first component. So if we pass only
X component, it will be the same as XXXX, or XY same as XYXX.

This patch simplifies the passed vector of components in InstCombine by
removing components from the end that are equal to the first component.

For image stores it also trims DMask if necessary.

---------

Co-authored-by: default avatarMateja Marjanovic <mmarjano@amd.com>
parent 528cd28d
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment