Skip to content

Commit

Permalink
sub_group_broadcast - don't emit second move for uniform destination
Browse files Browse the repository at this point in the history
If sub_group_broadcast can't be executed with one indirect register access,
but destination is uniform, emit one SIMD1 indirect access.
  • Loading branch information
pkwasnie-intel authored and igcbot committed Sep 4, 2023
1 parent fe6f3a3 commit 5936b97
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion IGC/Compiler/CISACodeGen/EmitVISAPass.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5224,7 +5224,8 @@ void EmitPass::emitSimdShuffle(llvm::Instruction* inst)
m_encoder->Copy(m_destination, pDstArrElm);
m_encoder->Push();

if (!channelUniform)
// If destination is uniform, don't execute second half.
if (!channelUniform && !m_destination->IsUniform())
{

m_encoder->SetSimdSize(SIMDMode::SIMD16);
Expand Down

0 comments on commit 5936b97

Please sign in to comment.