[PATCH] D43297: AMDGPU/SI: Turn off GPR Indexing Mode immediately after the interested instruction.

Changpeng Fang via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Feb 14 09:39:02 PST 2018

cfang created this revision.
cfang added reviewers: arsenm, tstellar, kzhuravl.
Herald added subscribers: t-tye, tpr, dstuttard, yaxunl, nhaehnle, wdng.

In the current implementation of GPR Indexing Mode when the index is of non-uniform, the s_set_gpr_idx_off instruction
is incorrectly inserted after the loop. This will lead the instructions with vgpr operands (v_readfirstlane for example) to read incorrect

In this patch, we fix the issue by inserting s_set_gpr_idx_on/off immediately around the interested instruction.



-------------- next part --------------
A non-text attachment was scrubbed...
Name: D43297.134245.patch
Type: text/x-patch
Size: 12283 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180214/8b17ba32/attachment.bin>

More information about the llvm-commits mailing list