Skip to content

Commit 3f75615

Browse files
weiyu-chengfxbot
authored andcommitted
Fix a bug so that for vISA input variables we print its given name instead of its internal id
Change-Id: I21629e586fe70edb8a3ddda340f914523828d078
1 parent fe8e91f commit 3f75615

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

visa/IsaDisassembly.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,6 @@ string printVariableDeclName(const print_format_provider_t* header,
168168
declID -= numPreDefinedVars;
169169
const var_info_t *var = header->getVar(declID);
170170
string name = header->getString(var->name_index);
171-
//sstr << "V" << declID << ":";
172171
sstr << name;
173172
}
174173
}
@@ -548,9 +547,9 @@ extern string printFuncInput(const print_format_provider_t* header, unsigned dec
548547
sstr << input->getImplicitKindString() << " ";
549548
}
550549

551-
if (options->getOption(vISA_DumpIsaVarNames) && INPUT_GENERAL == input->getInputClass())
550+
if (INPUT_GENERAL == input->getInputClass())
552551
{
553-
sstr << getGenVarName(input->index, *header);
552+
sstr << printVariableDeclName(header, input->index, options);
554553
}
555554
else
556555
{

0 commit comments

Comments
 (0)