Mirko Brkusanin 0c7cce54eb [AMDGPU] Resolve issues when picking between ds_read/write and ds_read2/write2
Both ds_read_b128 and ds_read2_b64 are valid for 128bit 16-byte aligned
loads but the one that will be selected is determined either by the order in
tablegen or by the AddedComplexity attribute. Currently ds_read_b128 has
priority.

While ds_read2_b64 has lower alignment requirements, we cannot always
restrict ds_read_b128 to 16-byte alignment because of unaligned-access-mode
option. This was causing ds_read_b128 to be selected for 8-byte aligned
loads regardles of chosen access mode.

To resolve this we use two patterns for selecting ds_read_b128. One
requires alignment of 16-byte and the other requires
unaligned-access-mode option.

Same goes for ds_write2_b64 and ds_write_b128.

Differential Revision: https://reviews.llvm.org/D92767
2020-12-10 12:40:49 +01:00
..
2019-07-02 14:16:39 +00:00
2020-08-05 12:36:26 -07:00
2020-07-21 18:13:04 -04:00
2020-07-23 20:56:19 +02:00
2020-07-29 20:01:12 -04:00
2020-09-15 15:50:34 -07:00
2020-10-28 12:27:07 -07:00
2020-10-28 12:27:07 -07:00
2020-10-28 12:27:07 -07:00