File tree Expand file tree Collapse file tree 1 file changed +3
-13
lines changed Expand file tree Collapse file tree 1 file changed +3
-13
lines changed Original file line number Diff line number Diff line change @@ -738,20 +738,10 @@ bool LowOverheadLoop::ValidateTailPredicate() {
738
738
// width, the Loop Start instruction will immediately generate one or more
739
739
// false lane mask which can, incorrectly, affect the proceeding MVE
740
740
// instructions in the preheader.
741
- auto CannotInsertWDLSTPBetween = [](MachineBasicBlock::iterator I,
742
- MachineBasicBlock::iterator E) {
743
- for (; I != E; ++I) {
744
- if (shouldInspect (*I)) {
745
- LLVM_DEBUG (dbgs () << " ARM Loops: Instruction blocks [W|D]LSTP"
746
- << " insertion: " << *I);
747
- return true ;
748
- }
749
- }
750
- return false ;
751
- };
752
-
753
- if (CannotInsertWDLSTPBetween (StartInsertPt, StartInsertBB->end ()))
741
+ if (std::any_of (StartInsertPt, StartInsertBB->end (), shouldInspect)) {
742
+ LLVM_DEBUG (dbgs () << " ARM Loops: Instruction blocks [W|D]LSTP\n " );
754
743
return false ;
744
+ }
755
745
756
746
// Check that the value change of the element count is what we expect and
757
747
// that the predication will be equivalent. For this we need:
You can’t perform that action at this time.
0 commit comments