[llvm] [LV] Don't predicate divs with invariant divisor when folding tail (PR #98904)

Florian Hahn via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 24 14:31:20 PDT 2024


================
@@ -3348,40 +3348,48 @@ bool LoopVectorizationCostModel::isPredicatedInst(Instruction *I) const {
     return false;
----------------
fhahn wrote:

Reorganized to combine all checks at the top, thanks!.

As for unifying the logic, might be good to do it separately, but definitely seems worthwhile given that the decisions are independent of cost

https://github.com/llvm/llvm-project/pull/98904


More information about the llvm-commits mailing list