modify name of extend arrays

This commit is contained in:
Ruobing Han 2022-09-23 09:11:45 -04:00
parent ed51e5af91
commit c6442c8b23
1 changed files with 1 additions and 5 deletions

View File

@ -100,7 +100,6 @@ bool ShouldNotBeContextSaved(llvm::Instruction *instr) {
llvm::Instruction *GetContextArray(llvm::Instruction *instruction,
bool intra_warp_loop) {
std::ostringstream var;
if (std::string(instruction->getName().str()) != "") {
var << instruction->getName().str();
} else if (tempInstructionIds.find(instruction) != tempInstructionIds.end()) {
@ -109,10 +108,7 @@ llvm::Instruction *GetContextArray(llvm::Instruction *instruction,
tempInstructionIds[instruction] = tempInstructionIndex++;
var << tempInstructionIds[instruction];
}
if (intra_warp_loop)
var << "_intra_warp_";
else
var << "_inter_warp_";
var << "_extend_array";
std::string varName = var.str();
if (contextArrays.find(varName) != contextArrays.end())