efriedma added a comment. Actually, there might be a bug here in the handling of "unordered" atomic loads... I haven't verified, but we might need to special-case them in LoopSink. Repository: rL LLVM https://reviews.llvm.org/D37463