mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-04-17 15:10:07 +00:00
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
This commit is contained in:
parent
ddec320d9c
commit
cbefc837ea
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user