[llvm] [LoopVectorize] LLVM fails to vectorise loops with multi-bool varables (PR #89226)
Dinar Temirbulatov via llvm-commits
llvm-commits at lists.llvm.org
Mon May 13 05:50:11 PDT 2024
================
@@ -1045,6 +1060,23 @@ bool LoopVectorizationLegality::canVectorizeInstrs() {
}
}
+ // Make sure that all compare instruction users are recurrent if in loop's BB.
+ if (MultiCmpsRed.size() > 0) {
----------------
dtemirbulatov wrote:
There might be other kind of reduction and compare instruction with multipe users, I have seen such a case. I think I will add a test for this case.
https://github.com/llvm/llvm-project/pull/89226
More information about the llvm-commits
mailing list