diff --git a/gematria/datasets/bhive_importer.cc b/gematria/datasets/bhive_importer.cc index 6e0e42b4..b2dd8eb9 100644 --- a/gematria/datasets/bhive_importer.cc +++ b/gematria/datasets/bhive_importer.cc @@ -165,7 +165,6 @@ absl::StatusOr BHiveImporter::BasicBlockProtoFromMBBName( // lookup the MBB in the map, if not, return error if (name_to_mbb_.find(MBB_name_ref) == name_to_mbb_.end()) { - LOG("Cannot find MBB, using key " << MBB_name); return absl::InvalidArgumentError( absl::StrCat("Could not find MBB with name ", MBB_name)); } @@ -175,7 +174,6 @@ absl::StatusOr BHiveImporter::BasicBlockProtoFromMBBName( for (llvm::MachineInstr& MI : *MBB){ // if MI is a control instruction(ret,branch,jmp), skip it if (MI.isInlineAsm() || MI.isTerminator() || MI.isEHLabel()) { - LOG("MI is a control instruction, skipping it " << MI); continue; } diff --git a/gematria/llvm/canonicalizer.cc b/gematria/llvm/canonicalizer.cc index 4a5864de..9b6cdcd9 100644 --- a/gematria/llvm/canonicalizer.cc +++ b/gematria/llvm/canonicalizer.cc @@ -78,8 +78,6 @@ void ReplaceExprOperands(llvm::MachineInstr& instruction) { // of the displacement and 0 might have a special meaning (e.g. do not use // displacement at all). operand = llvm::MachineOperand::CreateImm(1); - } else { - LOG("DEBUG: ReplaceExprOperands: operand" << operand << "Has type " << operand.getType() << "\n"); } } } @@ -197,7 +195,6 @@ void AddMIRVendorMnemonicAndPrefixes( llvm::raw_string_ostream stream(assembly_code); MI.print(stream); stream.flush(); - LOG("DEBUG: AddMIRVendorMnemonicAndPrefixes on " << MI << assembly_code << "\n"); // TODO: now used a dummy way to seperate tokens... don't know why SplitByAny does // not work for MIR stream @@ -212,11 +209,6 @@ void AddMIRVendorMnemonicAndPrefixes( } assert(!tokens.empty()); - //print out tokens - for (auto token : tokens){ - LOG("DEBUG: token: " << token); - } - // If there is only one token, we treat it as the mnemonic no matter what. if (tokens.size() == 1) { instruction.mnemonic = tokens[0]; @@ -248,7 +240,6 @@ void AddMIRVendorMnemonicAndPrefixes( // process prefix and mnemonic tokens std::string uppercased_token = token.trim().upper(); - LOG("DEBUG: uppercased_token: " << uppercased_token); const bool is_known_prefix = std::find(std::begin(kKnownPrefixes), std::end(kKnownPrefixes), uppercased_token) != std::end(kKnownPrefixes);