Skip to content

Commit a4a6872

Browse files
aparshin-inteligcbot
authored andcommitted
debug VisaMap is not needed for debug info
1 parent 1b35cf1 commit a4a6872

File tree

2 files changed

+1
-16
lines changed

2 files changed

+1
-16
lines changed

IGC/Compiler/CISACodeGen/CISABuilder.cpp

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -5252,18 +5252,7 @@ namespace IGC
52525252
memcpy_s(dbgInfo, dbgSize, genxdbgInfo, dbgSize);
52535253

52545254
freeBlock(genxdbgInfo);
5255-
5256-
if (numElems > 0 && VISAMap)
5257-
{
5258-
for (unsigned int i = 0; i < numElems * 2; i += 2)
5259-
{
5260-
auto GenISAOffset = ((unsigned int*)VISAMap)[i];
5261-
auto VISAIndex = ((unsigned int*)VISAMap)[i + 1];
5262-
m_program->m_VISAIndexToGenISAOff.push_back(std::make_pair(VISAIndex, GenISAOffset));
5263-
}
5264-
5265-
freeBlock(VISAMap);
5266-
}
5255+
freeBlock(VISAMap);
52675256
}
52685257

52695258
pOutput->m_programBin = kernel;

IGC/Compiler/CISACodeGen/ShaderCodeGen.hpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -438,10 +438,6 @@ class CShader
438438

439439
static unsigned GetIMEReturnPayloadSize(llvm::GenIntrinsicInst* I);
440440

441-
// When debug info is enabled, this vector stores mapping of
442-
// VISA index->Gen ISA offset. Currently, some APIs uses this
443-
// to dump out elf.
444-
std::vector<std::pair<unsigned int, unsigned int>> m_VISAIndexToGenISAOff;
445441
void addCVarsForVectorBC(llvm::BitCastInst* BCI, llvm::SmallVector<CVariable*, 8> CVars)
446442
{
447443
IGC_ASSERT_MESSAGE(m_VectorBCItoCVars.find(BCI) == std::end(m_VectorBCItoCVars), "a variable already exists for this vector bitcast");

0 commit comments

Comments
 (0)