[llvm-commits] [PATCH] implement strncat and strncpy optimizations
Chris Lattner
clattner at apple.com
Sat Apr 11 22:07:32 PDT 2009
On Apr 11, 2009, at 7:17 AM, Benjamin Kramer wrote:
> This patch adds optimizations for the library functions strncpy and
> strncat to the simplify-libcalls pass.
>
> The strcat and strncat opts share some code. I've implemented this
> by putting the common code in a method of StrCatOpt and made
> StrNCatOpt a subclass of StrCatOpt.
>
> I've also factored out EmitMemSet from MemSetOpt so it can be reused
> by the strncpy opt.
Beautiful! Applied here:
http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20090406/076220.html
-Chris
More information about the llvm-commits
mailing list