[llvm] [LV] Check isPredInst instead of isScalarWithPred in uniform analysis. (PR #98892)

Alexey Bataev via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 15 06:42:13 PDT 2024


================
@@ -3907,7 +3907,7 @@ void LoopVectorizationCostModel::collectLoopUniforms(ElementCount VF) {
   SetVector<Instruction *> Worklist;
 
   // Add uniform instructions demanding lane 0 to the worklist. Instructions
-  // that are scalar with predication must not be considered uniform after
+  // that are require predication must not be considered uniform after
----------------
alexey-bataev wrote:

```suggestion
  // that require predication must not be considered uniform after
```

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


More information about the llvm-commits mailing list