mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-22 02:33:06 +01:00
[ScheduleDAGInstrs] Simplify logic to improve readability. NFC.
The call to isInvariantLoad() already returns false for non-load instructions. llvm-svn: 258841
This commit is contained in:
parent
b8123e239a
commit
218caa8595
@ -519,8 +519,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) {
|
||||
return MI->isCall() || MI->hasUnmodeledSideEffects() ||
|
||||
(MI->hasOrderedMemoryRef() &&
|
||||
(!MI->mayLoad() || !MI->isInvariantLoad(AA)));
|
||||
(MI->hasOrderedMemoryRef() && !MI->isInvariantLoad(AA));
|
||||
}
|
||||
|
||||
// This MI might have either incomplete info, or known to be unsafe
|
||||
|
Loading…
Reference in New Issue
Block a user