[PATCH] D16160: Make sure we preserve alignment information after hoisting invariant load

Johannes Doerfert via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 14 16:24:25 PST 2016


jdoerfert added inline comments.

================
Comment at: lib/CodeGen/IslNodeBuilder.cpp:923
@@ -917,3 +922,3 @@
                                   Ptr->getName() + ".cast");
   PreloadVal = Builder.CreateLoad(Ptr, LInst->getName());
   LInst->eraseFromParent();
----------------
I forgot. We should set the alingment here too. Sorry.


Repository:
  rL LLVM

http://reviews.llvm.org/D16160





More information about the llvm-commits mailing list