[PATCH] D32567: [ARM] Miscompilation on arrays promoted to constant pools

Yin Ma via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue May 2 15:40:25 PDT 2017


yinma added a comment.

I tried this patch, I think it is a little bit too restrictive. If something like 
define i8* @foo() {
entry:

  store i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i32 0, i32 0), i8** @b, align 4
  ret i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i32 0, i32 0)

}

this is a write->read back to back case. I don't think it will cause any issue when it is promoted to constant pool.


Repository:
  rL LLVM

https://reviews.llvm.org/D32567





More information about the llvm-commits mailing list