llvm-project/llvm/test
Andrea Di Biagio 5578ec32f9 [MCA] Fixed a bug where loads and stores were sometimes incorrectly marked as depedent. Fixes PR45793.
This fixes a regression introduced by a very old commit 280ac1fd1d (was
llvm-svn 361950).

Commit 280ac1fd1d redesigned the logic in the LSUnit with the goal of
speeding up isReady() queries, and stabilising the LSUnit API (while also making
the load store unit more customisable).

The concept of MemoryGroup (effectively an alias set) was added by that commit
to better describe and track dependencies between memory operations.  However,
that concept was not just used for alias dependencies, but it was also used for
describing memory "order" dependencies (enforced by the memory consistency
model).

Instructions of a same memory group were considered "equivalent" as in:
independent operations that can potentially execute in parallel.  The problem
was that the cost of a dependency (in terms of number of cycles) should have
been different for "order" dependency. Instructions in an order dependency
simply have to have to wait until their predecessors are "issued" to an
underlying pipeline (rather than having to wait until predecessors have beeng
fully executed). For simple "order" dependencies, this was effectively
introducing an artificial delay on the "issue" of independent loads and stores.

This patch fixes the issue and adds a new test named 'independent-load-stores.s'
to a bunch of x86 targets. That test contains the reproducible posted by Fabian
Ritter on PR45793.

I had to rerun the update-mca-tests script on several files. To avoid expected
regressions on some Exynos tests, I have added a -noalias=false flag (to match
the old strict behavior on latencies).

Some tests for processor Barcelona are improved/fixed by this change and they
now show better results.  In a few tests we were incorrectly counting the time
spent by instructions in a scheduler queue.  In one case in particular we now
correctly see a store executed out of order.  That test was affected by the same
underlying issue reported as PR45793.

Reviewers: mattd

Differential Revision: https://reviews.llvm.org/D79351
2020-05-05 10:25:36 +01:00
..
Analysis Revert "[InstSimplify] Remove known bits constant folding" 2020-05-03 20:45:10 +02:00
Assembler Add IR constructs for preallocated (inalloca replacement) 2020-04-27 16:15:50 -07:00
Bindings Make IRBuilder automatically set alignment on load/store/alloca. 2020-04-13 13:43:14 -07:00
Bitcode [Bitcode] Make attribute test more robust (NFC) 2020-04-30 19:01:27 +02:00
BugPoint
CodeGen [WebAssembly] Fix block marker placing after fixUnwindMismatches 2020-05-05 02:06:47 -07:00
DebugInfo [DebugInfo][CodeView] Include namespace into emitted globals 2020-05-04 13:59:36 -04:00
Demangle
Examples
ExecutionEngine Revert 43f031d312 "Enable IBT(Indirect Branch Tracking) in JIT with CET(Control-flow Enforcement Technology)" 2020-04-06 15:05:25 +02:00
Feature Enable new passmanager plugin support for LTO. 2020-04-14 15:07:07 -07:00
FileCheck [FileCheck] Fix --dump-input annotation sort per input line 2020-04-16 15:39:35 -04:00
Instrumentation [SanitizerCoverage] Replace the unconditional store with a load, then a conditional store. 2020-05-05 02:25:05 -07:00
Integer
JitListener
LTO [IR] Replace all uses of CallBase::getCalledValue() with getCalledOperand(). 2020-04-27 22:17:03 -07:00
Linker
MC [WebAssembly] Renumber SIMD opcodes 2020-05-01 17:20:49 -07:00
MachineVerifier
Object [yaml2obj] - Program headers: add an additional check for `Offset` 2020-04-22 12:49:05 +03:00
ObjectYAML [ObjectYAML][MachO] Add support for relocations 2020-04-22 11:50:55 -07:00
Other [BPI][NFC] Reuse post dominantor tree from analysis manager when available 2020-04-30 11:31:03 +07:00
Reduce
SafepointIRVerifier
Support
SymbolRewriter
TableGen [llvm] NFC: Fix trivial typo in rst and td files 2020-04-23 14:26:32 +09:00
ThinLTO/X86 [LTO] Suppress emission of empty combined module by default 2020-05-04 18:31:09 -07:00
Transforms [CallGraphUpdater] Removed references to calles when deleting function 2020-05-04 18:59:47 -07:00
Unit Revert a few unsuccessful attempts at fixing bots. 2020-04-13 17:09:21 -04:00
Verifier [Verifier] Constrain where DILocations may be nested 2020-05-04 14:02:43 -07:00
YAMLParser
tools [MCA] Fixed a bug where loads and stores were sometimes incorrectly marked as depedent. Fixes PR45793. 2020-05-05 10:25:36 +01:00
.clang-format
CMakeLists.txt
TestRunner.sh
lit.cfg.py llvm-addr2line: assume addresses on the command line are hexadecimal rather than attempting to guess the base based on the form of the number. 2020-04-16 16:16:21 -07:00
lit.site.cfg.py.in Revert "Temporarily revert "build: use `find_package(Python3)` if available"" 2020-04-29 01:38:08 +00:00