efriedma-quic wrote:
Consider:
```
void f(int*);
void g() {
for (int i = 0; i < 10; ++i) {
const int j = i;
f(&j);
}
}
```
There's "one store"... but consider what happens if the loop is unrolled.
-----
There's also more subtle issues; we don't guarantee "one store" actually
remains a single store instruction.
https://github.com/llvm/llvm-project/pull/157676
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits