Optimizer believes vector's length field may alias with its own buffer #80921
Labels
A-LLVM
Area: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues.
C-enhancement
Category: An issue proposing an enhancement or a PR with one.
I-slow
Issue: Problems and improvements with respect to performance of generated code.
Consider the following code:
(Playground)
I'd expect the assertion to get optimized-out. However, the following assembly is generated:
The only instruction between the two
cmpq $42, (%rax)
comparisons is a write to16(%rdi)
. Thus, LLVM seems to believe that these two locations may alias.The text was updated successfully, but these errors were encountered: