[llvm] [LV] Ignore some costs when loop gets fully unrolled (PR #106699)

Florian Hahn via llvm-commits llvm-commits at lists.llvm.org
Wed Nov 13 13:10:20 PST 2024


================
@@ -2663,6 +2663,33 @@ static Value *getExpandedStep(const InductionDescriptor &ID,
   return I->second;
 }
 
+/// Knowing that loop \p L would be fully unrolled after vectorisation, add
+/// instructions that will get simplified and thus should not have any cost to
+/// \p InstsToIgnore
+static void AddFullyUnrolledInstructionsToIgnore(
----------------
fhahn wrote:

```suggestion
static void addFullyUnrolledInstructionsToIgnore(
```

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


More information about the llvm-commits mailing list