modify name of extend arrays
This commit is contained in:
parent
ed51e5af91
commit
c6442c8b23
|
@ -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())
|
||||||
|
|
Loading…
Reference in New Issue