[llvm-dev] What is the right lowering for misaligned memory access?
Jon Chesterfield via llvm-dev
llvm-dev at lists.llvm.org
Wed Jul 11 09:52:24 PDT 2018
What should a well behaved back end do with a load or store with alignment
less than the natural alignment of the type?
I believe C++ considers such access to be UB. I'm not sure what the IR
semantics are.
I think my options are:
- Delete the operation / use undef
- Lower as if it is naturally aligned
- Lower via inefficient code that assumes align 1
Thanks,
Jon
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20180711/26bb4c9f/attachment.html>
More information about the llvm-dev
mailing list