diff options
author | Changpeng Fang <changpeng.fang@gmail.com> | 2018-02-16 16:31:30 +0000 |
---|---|---|
committer | Changpeng Fang <changpeng.fang@gmail.com> | 2018-02-16 16:31:30 +0000 |
commit | da38b5fd49b210b0187b0fb0a3f74d48a5c5c883 (patch) | |
tree | 96687d5e4cd79b5acac6771a7521eea8d236255d /llvm/lib/Analysis/LazyValueInfo.cpp | |
parent | ff53a4a23467dde54233e1b7fe51e8049dfb6dda (diff) | |
download | bcm5719-llvm-da38b5fd49b210b0187b0fb0a3f74d48a5c5c883.tar.gz bcm5719-llvm-da38b5fd49b210b0187b0fb0a3f74d48a5c5c883.zip |
AMDGPU/SI: Turn off GPR Indexing Mode immediately after the interested instruction.
Summary:
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
vgpr.
In this patch, we fix the issue by inserting s_set_gpr_idx_on/off immediately around the interested instruction.
Reviewers:
rampitec
Differential Revision:
https://reviews.llvm.org/D43297
llvm-svn: 325355
Diffstat (limited to 'llvm/lib/Analysis/LazyValueInfo.cpp')
0 files changed, 0 insertions, 0 deletions