diff options
author | Simon Pilgrim <llvm-dev@redking.me.uk> | 2016-11-14 10:40:23 +0000 |
---|---|---|
committer | Simon Pilgrim <llvm-dev@redking.me.uk> | 2016-11-14 10:40:23 +0000 |
commit | 3d8482a88d5a3a43ef251e642b352fb1e4505335 (patch) | |
tree | b826f3f0a0aedb994339a45a80eddfd1084898a5 /llvm/lib/CodeGen/MachinePipeliner.cpp | |
parent | 95d7cfdf5029467806e5f91bae2f0bc996945c18 (diff) | |
download | bcm5719-llvm-3d8482a88d5a3a43ef251e642b352fb1e4505335.tar.gz bcm5719-llvm-3d8482a88d5a3a43ef251e642b352fb1e4505335.zip |
Remove redundant condition (PR28800) NFCI.
'A || (!A && B)' is equivalent to 'A || B':
(LoopCycle > DefCycle) || (LoopCycle <= DefCycle && LoopStage <= DefStage)
-->
(LoopCycle > DefCycle) || (LoopStage <= DefStage)
llvm-svn: 286811
Diffstat (limited to 'llvm/lib/CodeGen/MachinePipeliner.cpp')
-rw-r--r-- | llvm/lib/CodeGen/MachinePipeliner.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/MachinePipeliner.cpp b/llvm/lib/CodeGen/MachinePipeliner.cpp index 37455c5b7d3..23d7c6094a9 100644 --- a/llvm/lib/CodeGen/MachinePipeliner.cpp +++ b/llvm/lib/CodeGen/MachinePipeliner.cpp @@ -3805,8 +3805,7 @@ bool SMSchedule::isLoopCarried(SwingSchedulerDAG *SSD, MachineInstr &Phi) { return true; unsigned LoopCycle = cycleScheduled(UseSU); int LoopStage = stageScheduled(UseSU); - return LoopCycle > DefCycle || - (LoopCycle <= DefCycle && LoopStage <= DefStage); + return (LoopCycle > DefCycle) || (LoopStage <= DefStage); } /// Return true if the instruction is a definition that is loop carried |