[PATCH] D73220: [llvm-exegesis] Don't use unsupported aliasing instructions

Miloš Stojanović via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 23 03:47:21 PST 2020


This revision was automatically updated to reflect the committed changes.
Closed by commit rGe8fc8507dacb: [llvm-exegesis] Don't use unsupported aliasing instructions (authored by mstojanovic).

Changed prior to commit:
  https://reviews.llvm.org/D73220?vs=239668&id=239842#toc

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D73220/new/

https://reviews.llvm.org/D73220

Files:
  llvm/tools/llvm-exegesis/lib/SerialSnippetGenerator.cpp


Index: llvm/tools/llvm-exegesis/lib/SerialSnippetGenerator.cpp
===================================================================
--- llvm/tools/llvm-exegesis/lib/SerialSnippetGenerator.cpp
+++ llvm/tools/llvm-exegesis/lib/SerialSnippetGenerator.cpp
@@ -49,6 +49,13 @@
     if (OtherOpcode == Instr->Description.getOpcode())
       continue;
     const Instruction &OtherInstr = State.getIC().getInstr(OtherOpcode);
+    const MCInstrDesc &OtherInstrDesc = OtherInstr.Description;
+    // Ignore instructions that we cannot run.
+    if (OtherInstrDesc.isPseudo() ||
+        OtherInstrDesc.isBranch() || OtherInstrDesc.isIndirectBranch() ||
+        OtherInstrDesc.isCall() || OtherInstrDesc.isReturn()) {
+          continue;
+    }
     if (OtherInstr.hasMemoryOperands())
       continue;
     if (!State.getExegesisTarget().allowAsBackToBack(OtherInstr))


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D73220.239842.patch
Type: text/x-patch
Size: 861 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200123/d4b1544c/attachment.bin>


More information about the llvm-commits mailing list