[PATCH] D90744: [llvm-exegesis][X86] Ignore a few unmeasurable opcodes.
Clement Courbet via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Nov 4 01:47:07 PST 2020
courbet created this revision.
courbet added a reviewer: gchatelet.
Herald added a subscriber: mstojanovic.
Herald added a project: LLVM.
courbet requested review of this revision.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D90744
Files:
llvm/tools/llvm-exegesis/lib/X86/Target.cpp
Index: llvm/tools/llvm-exegesis/lib/X86/Target.cpp
===================================================================
--- llvm/tools/llvm-exegesis/lib/X86/Target.cpp
+++ llvm/tools/llvm-exegesis/lib/X86/Target.cpp
@@ -195,6 +195,21 @@
if (OpcodeName.startswith("POP") || OpcodeName.startswith("PUSH") ||
OpcodeName.startswith("ADJCALLSTACK") || OpcodeName.startswith("LEAVE"))
return "unsupported opcode: Push/Pop/AdjCallStack/Leave";
+ switch (Instr.Description.Opcode) {
+ case X86::LFS16rm:
+ case X86::LFS32rm:
+ case X86::LFS64rm:
+ case X86::LGS16rm:
+ case X86::LGS32rm:
+ case X86::LGS64rm:
+ case X86::LSS16rm:
+ case X86::LSS32rm:
+ case X86::LSS64rm:
+ case X86::SYSENTER:
+ return "unsupported opcode";
+ default:
+ break;
+ }
if (const auto reason = isInvalidMemoryInstr(Instr))
return reason;
// We do not handle instructions with OPERAND_PCREL.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D90744.302780.patch
Type: text/x-patch
Size: 906 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20201104/16817c88/attachment.bin>
More information about the llvm-commits
mailing list