[PATCH] D12269: Add a pass to lift aggregate into allocas so SROA can get rid of them.

Amaury SECHET via llvm-commits llvm-commits at lists.llvm.org
Sat Sep 26 00:51:10 PDT 2015


deadalnix added inline comments.

================
Comment at: lib/Transforms/Scalar/AggregateLifter.cpp:134
@@ +133,3 @@
+  IRBuilder<> Builder(LI);
+  Builder.CreateMemCpy(A, LI->getPointerOperand(), Size, Align);
+
----------------
Aren't volatile not considered simple ? In which case, the transoformation shouldn't happen on them.


http://reviews.llvm.org/D12269





More information about the llvm-commits mailing list