foad added a comment. Depending on the use case, you might also have to mark it as a scheduling barrier, not just having side effects. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D158750/new/ https://reviews.llvm.org/D158750