[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
This commit is contained in:
Sjoerd Meijer 2020-09-16 16:35:53 +01:00
parent cb64455faa
commit b5c3efeb7b
1 changed files with 1 additions and 1 deletions

View File

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