llvm-project
llvm-project copied to clipboard
[Loop Vectorizer] __builtin_assume_separate_storage is not propagated to LV AA
See reproducer in https://godbolt.org/z/c7ea3b85Y
Adding restrict to the function parameters makes vectorization safe.
Using __builtin_assume_separate_storage(a1, a2); should provide the same information as the restrict in this case, yet the loop is not vectorized.