[llvm] r346227 - [llvm-exegesis] Ignore X86 pseudo instructions.

Clement Courbet via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 6 06:11:59 PST 2018


Author: courbet
Date: Tue Nov  6 06:11:58 2018
New Revision: 346227

URL: http://llvm.org/viewvc/llvm-project?rev=346227&view=rev
Log:
[llvm-exegesis] Ignore X86 pseudo instructions.

Summary: They do not lower to actual MCInsts and have no scheduling info.

Reviewers: gchatelet

Subscribers: llvm-commits, tschuett

Differential Revision: https://reviews.llvm.org/D54147

Modified:
    llvm/trunk/tools/llvm-exegesis/lib/X86/Target.cpp

Modified: llvm/trunk/tools/llvm-exegesis/lib/X86/Target.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-exegesis/lib/X86/Target.cpp?rev=346227&r1=346226&r2=346227&view=diff
==============================================================================
--- llvm/trunk/tools/llvm-exegesis/lib/X86/Target.cpp (original)
+++ llvm/trunk/tools/llvm-exegesis/lib/X86/Target.cpp Tue Nov  6 06:11:58 2018
@@ -75,6 +75,9 @@ getMemoryOperandRanges(llvm::ArrayRef<Op
 
 static llvm::Error IsInvalidOpcode(const Instruction &Instr) {
   const auto OpcodeName = Instr.Name;
+  if ((Instr.Description->TSFlags & X86II::FormMask) == X86II::Pseudo)
+    return llvm::make_error<BenchmarkFailure>(
+        "unsupported opcode: pseudo instruction");
   if (OpcodeName.startswith("POPF") || OpcodeName.startswith("PUSHF") ||
       OpcodeName.startswith("ADJCALLSTACK"))
     return llvm::make_error<BenchmarkFailure>(




More information about the llvm-commits mailing list