[PATCH] D16425: [opaque pointer types] [NFC] isDereferenceable{, AndAligned}Pointer: take the accessed size (and alignment) as arguments.

Manuel Jacob via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 21 17:42:30 PST 2016


mjacob added inline comments.

================
Comment at: lib/Transforms/IPO/ArgumentPromotion.cpp:432
@@ -430,3 +431,3 @@
 /// arguments passed in.
-bool ArgPromotion::isSafeToPromoteArgument(Argument *Arg,
+bool ArgPromotion::isSafeToPromoteArgument(Argument *Arg, Type *ElemTy,
                                            bool isByValOrInAlloca,
----------------
Can we pass the size instead of pointee type here?


http://reviews.llvm.org/D16425





More information about the llvm-commits mailing list