Skip to content

Commit b5c3efe

Browse files
author
Sjoerd Meijer
committed
[ARM][MVE] Tail-predication: predicate new elementcount checks on force-enabled
Additional sanity checks were added to get.active.lane.mask's second argument, the loop tripcount/elementcount, in rG635b87511ec3. Like the other (overflow) checks, skip this if tail-predication is forced. Differential Revision: https://reviews.llvm.org/D87769
1 parent cb64455 commit b5c3efe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Target/ARM/MVETailPredication.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -411,7 +411,7 @@ bool MVETailPredication::IsSafeActiveMask(IntrinsicInst *ActiveLaneMask,
411411
<< TC2 << " from get.active.lane.mask\n");
412412
return false;
413413
}
414-
} else {
414+
} else if (!ForceTailPredication) {
415415
// Smoke tests if the element count is a runtime value. I.e., this isn't
416416
// fully generic because that would require a full SCEV visitor here. It
417417
// would require extracting the variable from the elementcount SCEV

0 commit comments

Comments
 (0)