[llvm] [LV, VP]VP intrinsics support for the Loop Vectorizer + adding new tail-folding mode using EVL. (PR #76172)

Alexey Bataev via llvm-commits llvm-commits at lists.llvm.org
Mon Apr 1 03:15:06 PDT 2024


================
@@ -9584,7 +9743,7 @@ static bool areRuntimeChecksProfitable(GeneratedRTChecks &Checks,
   }
 
   // The scalar cost should only be 0 when vectorizing with a user specified VF/IC. In those cases, runtime checks should always be generated.
-  double ScalarC = *VF.ScalarCost.getValue();
+  uint64_t ScalarC = *VF.ScalarCost.getValue();
----------------
alexey-bataev wrote:

I assume it should work even with vscale x 1. Plus, I think we'd better to use ints instead of double in the compiler. I prepare a separate patch with this fix.

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


More information about the llvm-commits mailing list