sched: fix latency of memory dependence chain edges for consistency.
authorAndrew Trick <atrick@apple.com>
Wed, 13 Jun 2012 02:39:03 +0000 (02:39 +0000)
committerAndrew Trick <atrick@apple.com>
Wed, 13 Jun 2012 02:39:03 +0000 (02:39 +0000)
commit1c2d3c538c6062655f2b37438cc69a769ab90942
treeeb0b328855aaf54e6d864d89621e73212be3f84a
parent9df55eed0470c898c4003dc433c4479bdb0e0aac
sched: fix latency of memory dependence chain edges for consistency.

For store->load dependencies that may alias, we should always use
TrueMemOrderLatency, which may eventually become a subtarget hook. In
effect, we should guarantee at least TrueMemOrderLatency on at least
one DAG path from a store to a may-alias load.

This should fix the standard mode as well as -enable-aa-sched-mi".

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@158380 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/ScheduleDAGInstrs.cpp
test/CodeGen/ARM/2012-06-12-SchedMemLatency.ll [new file with mode: 0644]