Skip to content

Commit 4ab9412

Browse files
committed
[llvm-exegesis] [AArch64] Remove register initial value debug info
1 parent a53d5b0 commit 4ab9412

File tree

1 file changed

+0
-19
lines changed

1 file changed

+0
-19
lines changed

llvm/tools/llvm-exegesis/lib/Assembler.cpp

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -80,26 +80,9 @@ static bool generateSnippetSetupCode(const ExegesisTarget &ET,
8080
Register StackPointerRegister = BBF.MF.getSubtarget()
8181
.getTargetLowering()
8282
->getStackPointerRegisterToSaveRestore();
83-
#define DEBUG_TYPE "register-initial-values"
8483
// FIXME: Only loading first register with memory address is hacky.
8584
bool isFirstRegister = true;
8685
for (const RegisterValue &RV : Key.RegisterInitialValues) {
87-
// Debug: register name and class name and value from BenchmarkKey
88-
const MCRegisterInfo *RegInfo = BBF.MF.getTarget().getMCRegisterInfo();
89-
const char *RegName = RegInfo->getName(RV.Register);
90-
const char *regClassName = "Unknown";
91-
for (unsigned i = 0, e = RegInfo->getNumRegClasses(); i < e; ++i) {
92-
const MCRegisterClass &RC = RegInfo->getRegClass(i);
93-
if (RC.contains(RV.Register)) {
94-
regClassName = RegInfo->getRegClassName(&RC);
95-
break;
96-
}
97-
}
98-
LLVM_DEBUG(
99-
dbgs() << "Setting register (Class: " << regClassName << ") " << RegName
100-
<< std::string(
101-
std::max(0, 3 - static_cast<int>(strlen(RegName))), ' '));
102-
10386
if (GenerateMemoryInstructions) {
10487
// If we're generating memory instructions, don't load in the value for
10588
// the register with the stack pointer as it will be used later to finish
@@ -117,8 +100,6 @@ static bool generateSnippetSetupCode(const ExegesisTarget &ET,
117100
}
118101
}
119102
// Load a constant in the register.
120-
LLVM_DEBUG(dbgs() << " to " << RV.Value << "\n");
121-
#undef DEBUG_TYPE
122103
const auto SetRegisterCode = ET.setRegTo(*MSI, RV.Register, RV.Value);
123104
if (SetRegisterCode.empty())
124105
IsSnippetSetupComplete = false;

0 commit comments

Comments
 (0)