[PATCH] D90380: [llvm-exegesis] Do not try to assign random registers twice.
Clement Courbet via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Oct 29 05:27:57 PDT 2020
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rG24bf8faabd62: [llvm-exegesis] Do not try to assign random registers twice. (authored by courbet).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D90380/new/
https://reviews.llvm.org/D90380
Files:
llvm/test/tools/llvm-exegesis/X86/latency-IN16rr.s
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
@@ -140,7 +140,7 @@
InstructionTemplate OtherIT(OtherInstr);
if (!Forward.hasImplicitAliasing())
setRandomAliasing(Forward, ThisIT, OtherIT);
- if (!Back.hasImplicitAliasing())
+ else if (!Back.hasImplicitAliasing())
setRandomAliasing(Back, OtherIT, ThisIT);
CodeTemplate CT;
CT.Execution = ExecutionModeBit;
Index: llvm/test/tools/llvm-exegesis/X86/latency-IN16rr.s
===================================================================
--- /dev/null
+++ llvm/test/tools/llvm-exegesis/X86/latency-IN16rr.s
@@ -0,0 +1,12 @@
+# RUN: llvm-exegesis -mode=latency -opcode-name=IN16rr -repetition-mode=duplicate | FileCheck %s
+
+CHECK: ---
+CHECK-NEXT: mode: latency
+CHECK-NEXT: key:
+CHECK-NEXT: instructions:
+CHECK-NEXT: - 'IN16rr'
+CHECK-NEXT: - {{.*}}
+CHECK-NEXT: config: ''
+CHECK-NEXT: register_initial_values:
+CHECK-DAG: - '[[REG1:[A-Z0-9]+]]=0x0'
+CHECK-LAST: ...
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D90380.301586.patch
Type: text/x-patch
Size: 1191 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20201029/d1717d5b/attachment.bin>
More information about the llvm-commits
mailing list