[PATCH] D17993: [CodeGen] Apply 'nonnull' to 'this' pointer arguments.

Geoff Berry via cfe-commits cfe-commits at lists.llvm.org
Mon Apr 11 14:38:58 PDT 2016


gberry added a subscriber: gberry.
gberry added a comment.

Not to hijack this review, but would it not make sense to do something similar with the 'this' pointer and the 'dereferenceable' attribute?  Granted, figuring out the size to use is trickier, but I believe this would enable LICM e.g. to hoist member variable loads out of loops in more cases.


http://reviews.llvm.org/D17993





More information about the cfe-commits mailing list