diff options
author | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2012-08-29 21:19:21 +0000 |
---|---|---|
committer | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2012-08-29 21:19:21 +0000 |
commit | f036f7a1e79910bf5b5b6f37d2e512b4f01155a0 (patch) | |
tree | c2767358bf504fd67496b37d8d42e5c3c034b62b /lib/CodeGen/ScheduleDAGInstrs.cpp | |
parent | ad7ebc2aebd94ec9e0bd01e1735d06cfe067368b (diff) | |
download | llvm-f036f7a1e79910bf5b5b6f37d2e512b4f01155a0.tar.gz llvm-f036f7a1e79910bf5b5b6f37d2e512b4f01155a0.tar.bz2 llvm-f036f7a1e79910bf5b5b6f37d2e512b4f01155a0.tar.xz |
Rename hasVolatileMemoryRef() to hasOrderedMemoryRef().
Ordered memory operations are more constrained than volatile loads and
stores because they must be ordered with respect to all other memory
operations.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@162861 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/ScheduleDAGInstrs.cpp')
-rw-r--r-- | lib/CodeGen/ScheduleDAGInstrs.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/ScheduleDAGInstrs.cpp b/lib/CodeGen/ScheduleDAGInstrs.cpp index dfad18b394..c25f39d5fd 100644 --- a/lib/CodeGen/ScheduleDAGInstrs.cpp +++ b/lib/CodeGen/ScheduleDAGInstrs.cpp @@ -502,7 +502,7 @@ void ScheduleDAGInstrs::addVRegUseDeps(SUnit *SU, unsigned OperIdx) { /// (like a call or something with unmodeled side effects). static inline bool isGlobalMemoryObject(AliasAnalysis *AA, MachineInstr *MI) { if (MI->isCall() || MI->hasUnmodeledSideEffects() || - (MI->hasVolatileMemoryRef() && + (MI->hasOrderedMemoryRef() && (!MI->mayLoad() || !MI->isInvariantLoad(AA)))) return true; return false; |