[PATCH] D47237: [DSE] Calloc-strlen optimizations
Dávid Bolvanský via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu May 24 17:39:53 PDT 2018
xbolva00 added a comment.
In https://reviews.llvm.org/D47237#1111835, @efriedma wrote:
> I can't imagine a situation where this transform would trigger in practice... but maybe I don't write enough C code. How often does this trigger on some large codebase, like the LLVM testsuite?
Currently, this is rare, but folding malloc + memset to calloc will bring more hints. This patch also introduces "support for CallInst" in MemoryLocation - what is a nice thing for any future patches.
https://reviews.llvm.org/D47237
More information about the llvm-commits
mailing list