alexey-bataev wrote: > > Shall we prevent stores sorting for such stores to preserve the order? > > In `reorderBottomToTop`? Or elsewhere? Everywhere, but yes, particularly in these reorder... functions https://github.com/llvm/llvm-project/pull/200018