[PATCH] D14699: [GlobalOpt] Allow constant globals to be SRA'd

Mehdi AMINI via llvm-commits llvm-commits at lists.llvm.org
Mon Nov 16 08:01:54 PST 2015


joker.eph added inline comments.

================
Comment at: test/Transforms/GlobalOpt/globalsra.ll:31
@@ +30,3 @@
+define void @onlystore2() {
+        store i32 123, i32* getelementptr ({ i32, float, { double } }, { i32, float, { double } }* @G2, i32 0, i32 0)
+        ret void
----------------
It is strange that we can store to a constant?


Repository:
  rL LLVM

http://reviews.llvm.org/D14699





More information about the llvm-commits mailing list