https://llvm.org/bugs/show_bug.cgi?id=28410

John McCall <rjmcc...@apple.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |INVALID

--- Comment #8 from John McCall <rjmcc...@apple.com> ---
Your code has undefined behavior: it's accessing a pointer whose type claims
that it has a certain alignment when the actual pointer does not.  The compiler
is allowed to assume that explicit alignment attributes are, in fact, correct. 
It is reasonable for the compiler to be more aggressive in the face of this
kind of information because the programmer took explicit steps to provide it.

It is likely that other compilers are not generating this particular
highly-aligned access simply because they're not fusing multiple accesses. 
LLVM is more aggressive about this kind of optimization.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to