[llvm] [SLP]Support runtime alias checks versioning for blocks in loops (PR #226955)

via llvm-commits llvm-commits at lists.llvm.org
Mon Sep 28 03:53:45 PDT 2026


llvmorg-github-actions[bot] wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-llvm-transforms

Author: Alexey Bataev (alexey-bataev)

<details>
<summary>Changes</summary>

Allow versioning of blocks inside loops, e.g. fully unrolled inner loop,
whose pointers are advanced by the loop header PHIs. Accept header PHIs
as base objects, use the base values directly in the bounds instead of
recomputing loop-variant bases from their recurrences.

Fixes #<!-- -->49896

Assisted-by: Cursor


---
Full diff: https://github.com/llvm/llvm-project/pull/226955.diff


2 Files Affected:

- (modified) llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp (+42-33) 
- (modified) llvm/test/Transforms/SLPVectorizer/X86/runtime-alias-checks.ll (+36-8) 


``````````diff
The server is unavailable at this time. Please wait a few minutes before you try again.
``````````

</details>


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


More information about the llvm-commits mailing list