[PATCH] D49771: CodeGen: use non-zero memset when possible for automatic variables

JF Bastien via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Jul 31 14:19:56 PDT 2018


jfb added a comment.

In https://reviews.llvm.org/D49771#1181008, @mehdi_amini wrote:

> I'm curious: isn't the kind of optimization we should expect LLVM to provide?


Maybe? It seems obvious to do here since we know we'll probably want to be doing it, and I have another patch I'm working on which will make it that much more obviously useful to have here. The middle-end can definitely figure it out but it just seems like more work, later, so in the meantime we'd be looking at more stuff.


Repository:
  rL LLVM

https://reviews.llvm.org/D49771





More information about the cfe-commits mailing list