Skip to content

Commit c7505e6

Browse files
weiyu-chensys_zuul
authored andcommitted
Small refactor to vISA emit pass.
Change-Id: I916c06cf4dd3e7e2b3571b71b6f165b880e6f9f5
1 parent bf25778 commit c7505e6

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

IGC/Compiler/CISACodeGen/EmitVISAPass.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8729,6 +8729,8 @@ void EmitPass::emitExtract(llvm::Instruction* inst)
87298729
pOffset3 = pOffset2;
87308730
}
87318731

8732+
{
8733+
87328734

87338735
// address variable represents register a0
87348736
CVariable* pDstArrElm = m_currShader->GetNewAddressVariable(
@@ -8744,6 +8746,7 @@ void EmitPass::emitExtract(llvm::Instruction* inst)
87448746
// finally, we move the indirectly addressed values to the destination register
87458747
m_encoder->Copy(m_destination, pDstArrElm);
87468748
m_encoder->Push();
8749+
}
87478750
}
87488751
}
87498752

@@ -11172,7 +11175,7 @@ void EmitPass::emitReductionClustered(const e_opcode op, const uint64_t identity
1117211175

1117311176
const auto dispatchSize = static_cast<decltype(clusterSize)>(
1117411177
numLanes(m_currShader->m_dispatchSize));
11175-
const bool isSimd32 = m_currShader->m_dispatchSize == SIMDMode::SIMD32;
11178+
const bool isSimd32 = m_currShader->m_numberInstance == 2;
1117611179
const bool useReduceAll = clusterSize >= dispatchSize;
1117711180

1117811181
if(clusterSize == 1)

0 commit comments

Comments
 (0)