[llvm] 50acbbe - [AsmPrinter][ORE] use correct opcode name
Chen Zheng via llvm-commits
llvm-commits at lists.llvm.org
Sun Nov 7 17:55:16 PST 2021
Author: Chen Zheng
Date: 2021-11-08T01:51:24Z
New Revision: 50acbbe3cd1986bff6d06904ff85a106a9ec3e54
URL: https://github.com/llvm/llvm-project/commit/50acbbe3cd1986bff6d06904ff85a106a9ec3e54
DIFF: https://github.com/llvm/llvm-project/commit/50acbbe3cd1986bff6d06904ff85a106a9ec3e54.diff
LOG: [AsmPrinter][ORE] use correct opcode name
Reviewed By: jsji
Differential Revision: https://reviews.llvm.org/D113173
Added:
Modified:
llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
llvm/test/CodeGen/PowerPC/instruction-mix-remarks-BCTRL_LWZinto_toc.ll
Removed:
################################################################################
diff --git a/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp b/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
index 54aaa335d24be..cc848d28a9a7a 100644
--- a/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
+++ b/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
@@ -1415,7 +1415,7 @@ void AsmPrinter::emitFunctionBody() {
});
R << "BasicBlock: " << ore::NV("BasicBlock", MBB.getName()) << "\n";
for (auto &KV : MnemonicVec) {
- auto Name = (Twine("INST_") + KV.first.trim()).str();
+ auto Name = (Twine("INST_") + getToken(KV.first.trim()).first).str();
R << KV.first << ": " << ore::NV(Name, KV.second) << "\n";
}
ORE->emit(R);
diff --git a/llvm/test/CodeGen/PowerPC/instruction-mix-remarks-BCTRL_LWZinto_toc.ll b/llvm/test/CodeGen/PowerPC/instruction-mix-remarks-BCTRL_LWZinto_toc.ll
index b28515e7ffb42..e5fe7aabf82fa 100644
--- a/llvm/test/CodeGen/PowerPC/instruction-mix-remarks-BCTRL_LWZinto_toc.ll
+++ b/llvm/test/CodeGen/PowerPC/instruction-mix-remarks-BCTRL_LWZinto_toc.ll
@@ -6,8 +6,7 @@
; CHECK: - String: "\n"
; CHECK: - String: "bctrl\n\tld 2, "
; CHECK: - String: ': '
-; CHECK: - INST_bctrl
-; CHECK: ld 2,: '1'
+; CHECK: - INST_bctrl: '1'
; CHECK: - String: "\n"
More information about the llvm-commits
mailing list