[llvm-dev] load instruction erroneously removed by GVN

Sanjoy Das via llvm-dev llvm-dev at lists.llvm.org
Fri Aug 7 11:35:47 PDT 2015

I noticed that the alloca is marked as "align 1".  Could it be that
the store in @format_long has a coarser alignment (align 4 store to an
align 1 alloca is UB).  Note that the default alignment on loads and
stores is ABI alignment, not 1.

Otherwise, this looks like a legitimate problem to me, please file a
bug with a reproducer.

-- Sanjoy

More information about the llvm-dev mailing list