Index: llvm/lib/Target/ARM/MVETailPredication.cpp =================================================================== --- llvm/lib/Target/ARM/MVETailPredication.cpp +++ llvm/lib/Target/ARM/MVETailPredication.cpp @@ -411,7 +411,7 @@ << 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