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

Florian Hahn via llvm-commits llvm-commits at lists.llvm.org
Mon Apr 1 03:10:46 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();
----------------
fhahn wrote:

IIUC this fix is unrelated to the patch? If so, should be split off. To avoid unrelated UBSan failures, it should be enough to provide something like `-force-vector-width=4` for the target-independent tests

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


More information about the llvm-commits mailing list