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