Your vectors are local to the function, so not the same thing, trivial for compiler to know they aren't aliased.
Re:Incrementing Vectors (2019)
by yarrrrrrrrrrrr on Friday September 23, 2022 @05:49AM
(#32949833)
https://quick-bench.com/q/x9kqob0PB5FsWQ65tFgpOlpaWOA
Repro. As the other commenter said, the internal data pointers need to be of unknown provenance (e.g. non-local).
https://quick-bench.com/q/93vPCntI82FHbwAMv1ODUd_FjPc