Skip to content

Commit 231949c

Browse files
jgu222gfxbot
authored andcommitted
If bitcast (relayout bitcast) has been coalesced, don't
separate cvars. If this cause performance regression, will need to find a better way to do this kind of special handling Change-Id: Ib7a216d2487fc42a1e0f6a388619ad3f74167202
1 parent d85f68d commit 231949c

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

IGC/Compiler/CISACodeGen/EmitVISAPass.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12969,6 +12969,12 @@ void EmitPass::emitVectorBitCast(llvm::BitCastInst* BCI)
1296912969
!dstUniform && srcNElts == 1 && N <= 8 &&
1297012970
allUsesAreEEwithImm(BCI);
1297112971

12972+
// Once BCI has been coalesced, don't separate CVar for BCI
12973+
// [todo evaluate the performance impact and let alias handle it
12974+
// if needed]
12975+
if (m_currShader->IsCoalesced(BCI))
12976+
useSeparateCVar = false;
12977+
1297212978
for (unsigned i = 0, offset = 0; i < srcNElts; ++i)
1297312979
{
1297412980
for (unsigned j = 0; j < N; ++j)

0 commit comments

Comments
 (0)