[llvm] r286811 - Remove redundant condition (PR28800) NFCI.
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Mon Nov 14 02:40:23 PST 2016
Author: rksimon
Date: Mon Nov 14 04:40:23 2016
New Revision: 286811
URL: http://llvm.org/viewvc/llvm-project?rev=286811&view=rev
Log:
Remove redundant condition (PR28800) NFCI.
'A || (!A && B)' is equivalent to 'A || B':
(LoopCycle > DefCycle) || (LoopCycle <= DefCycle && LoopStage <= DefStage)
-->
(LoopCycle > DefCycle) || (LoopStage <= DefStage)
Modified:
llvm/trunk/lib/CodeGen/MachinePipeliner.cpp
Modified: llvm/trunk/lib/CodeGen/MachinePipeliner.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/MachinePipeliner.cpp?rev=286811&r1=286810&r2=286811&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/MachinePipeliner.cpp (original)
+++ llvm/trunk/lib/CodeGen/MachinePipeliner.cpp Mon Nov 14 04:40:23 2016
@@ -3805,8 +3805,7 @@ bool SMSchedule::isLoopCarried(SwingSche
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
More information about the llvm-commits
mailing list