[PATCH] D26585: [AMDGPU] Add wave barrier builtin
Stanislav Mekhanoshin via llvm-commits
llvm-commits at lists.llvm.org
Mon Nov 14 20:11:24 PST 2016
rampitec marked 2 inline comments as done.
rampitec added inline comments.
================
Comment at: lib/Target/AMDGPU/SIInstructions.td:142
+ [(int_amdgcn_wave_barrier)]> {
+ let SALU = 1;
+ let SchedRW = [WriteBarrier];
----------------
arsenm wrote:
> I think this shouldn't be set. I think this will end up counting this as 4 bytes instead of 0
If it does not have SALU, then it is VALU, and that is what happens:
*** Bad machine code: VALU instruction does not implicitly read exec mask ***
I have added it to SIInstrInfo::getInstSizeInBytes() instead.
Repository:
rL LLVM
https://reviews.llvm.org/D26585
More information about the llvm-commits
mailing list