[PATCH] D45321: [atomics] Fix runtime calls for misaligned atomics
Tim Northover via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Apr 5 09:37:30 PDT 2018
t.p.northover added a comment.
> Bug won't clang lower these access to the exactly that IR that LLVM declares as UB?
No, it explicitly checks alignment to decide whether to make a libcall itself.
Also, the LLVM situation is even more nuanced: after r320243 I think the LangRef is out of date and misaligned ones can't be called UB; fortunately, it also seems to do the right thing.
Repository:
rCRT Compiler Runtime
https://reviews.llvm.org/D45321
More information about the llvm-commits
mailing list