diff options
author | Matt Arsenault <Matthew.Arsenault@amd.com> | 2016-03-02 04:12:39 +0000 |
---|---|---|
committer | Matt Arsenault <Matthew.Arsenault@amd.com> | 2016-03-02 04:12:39 +0000 |
commit | f2dcb4737b2335702ca3fbd3bfc5e4d6025877a6 (patch) | |
tree | a2088ece33ba591edbcfc14d2aa2b07976c35957 /llvm/lib/Target/AMDGPU/SIInsertWaits.cpp | |
parent | a266bd8760c7029da87aec78cbc13f6354d2d9af (diff) | |
download | bcm5719-llvm-f2dcb4737b2335702ca3fbd3bfc5e4d6025877a6.tar.gz bcm5719-llvm-f2dcb4737b2335702ca3fbd3bfc5e4d6025877a6.zip |
AMDGPU: Fix bug 26659.
Fix checking the same instruction twice instead of the
second branch that uses vccz. I don't think this matters
currently because s_branch_vccnz is always used currently.
llvm-svn: 262457
Diffstat (limited to 'llvm/lib/Target/AMDGPU/SIInsertWaits.cpp')
-rw-r--r-- | llvm/lib/Target/AMDGPU/SIInsertWaits.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/AMDGPU/SIInsertWaits.cpp b/llvm/lib/Target/AMDGPU/SIInsertWaits.cpp index 03bebae729e..65cff9cb3ed 100644 --- a/llvm/lib/Target/AMDGPU/SIInsertWaits.cpp +++ b/llvm/lib/Target/AMDGPU/SIInsertWaits.cpp @@ -164,7 +164,7 @@ const Counters SIInsertWaits::WaitCounts = { { 15, 7, 15 } }; const Counters SIInsertWaits::ZeroCounts = { { 0, 0, 0 } }; static bool readsVCCZ(unsigned Opcode) { - return Opcode == AMDGPU::S_CBRANCH_VCCNZ || Opcode == AMDGPU::S_CBRANCH_VCCNZ; + return Opcode == AMDGPU::S_CBRANCH_VCCNZ || Opcode == AMDGPU::S_CBRANCH_VCCZ; } bool SIInsertWaits::hasOutstandingLGKM() const { |