mehdi_amini added a comment. > To not break LTO with different optimizations levels, we should insert the barrier regardles of optimization level. What do you mean by "break"? Is it a correctness issue? https://reviews.llvm.org/D32401