@@ -217,23 +217,20 @@ const filter = ref(loadFilterFromUrl(urlParams, defaultCompileFilter));
217
217
218
218
// Should we use the backend as the source of before/after data?
219
219
const selfCompareBackend = computed (() => {
220
+ return canCompareBackends .value && filter .value .selfCompareBackend ;
221
+ });
222
+ const canCompareBackends = computed (() => {
220
223
const hasMultipleBackends =
221
224
new Set (props .data .compile_comparisons .map ((c ) => c .backend )).size > 1 ;
222
- return (
223
- comparesIdenticalCommits .value &&
224
- filter .value .selfCompareBackend &&
225
- hasMultipleBackends
226
- );
225
+ // Are we currently comparing the same commit in the before/after toolchains?
226
+ const comparesSameCommit = props .data .a .commit === props .data .b .commit ;
227
+ return hasMultipleBackends && comparesSameCommit ;
227
228
});
228
229
229
230
function exportData() {
230
231
exportToMarkdown (comparisons .value , filter .value .showRawData );
231
232
}
232
233
233
- // Are we currently comparing the same commit in the before/after toolchains?
234
- const comparesIdenticalCommits = computed (() => {
235
- return props .data .a .commit === props .data .b .commit ;
236
- });
237
234
const benchmarkMap = createCompileBenchmarkMap (props .data );
238
235
239
236
const compileComparisons = computed (() => {
@@ -265,7 +262,7 @@ const filteredSummary = computed(() => computeSummary(comparisons.value));
265
262
:metrics =" benchmarkInfo.compile_metrics"
266
263
/>
267
264
<div
268
- v-if =" comparesIdenticalCommits "
265
+ v-if =" canCompareBackends "
269
266
:title =" `Compare codegen backends for commit '${props.data.a.commit}'`"
270
267
>
271
268
Compare codegen backends for this commit:
0 commit comments