summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen
diff options
context:
space:
mode:
authorChad Rosier <mcrosier@codeaurora.org>2016-01-26 19:33:57 +0000
committerChad Rosier <mcrosier@codeaurora.org>2016-01-26 19:33:57 +0000
commitb46d0f9a715c22dacce2d1c0e94e61f1b01d977e (patch)
tree715739c87abf1364e29d677b75f02159375085f8 /llvm/lib/CodeGen
parent929025d1a614bef2ef68a50898cccfb283d3abf3 (diff)
downloadbcm5719-llvm-b46d0f9a715c22dacce2d1c0e94e61f1b01d977e.tar.gz
bcm5719-llvm-b46d0f9a715c22dacce2d1c0e94e61f1b01d977e.zip
[ScheduleDAGInstrs] Simplify logic to improve readability. NFC.
The call to isInvariantLoad() already returns false for non-load instructions. llvm-svn: 258841
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r--llvm/lib/CodeGen/ScheduleDAGInstrs.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/ScheduleDAGInstrs.cpp b/llvm/lib/CodeGen/ScheduleDAGInstrs.cpp
index e0aeb570c2f..00a0b0fc33a 100644
--- a/llvm/lib/CodeGen/ScheduleDAGInstrs.cpp
+++ b/llvm/lib/CodeGen/ScheduleDAGInstrs.cpp
@@ -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
OpenPOWER on IntegriCloud