[llvm-commits] [PATCH] Do not run LoopIdiomRecognizerPass inside memset() and friends.

arrowdodger 6yearold at gmail.com
Sun Jul 10 08:13:16 PDT 2011


On Sun, Jul 10, 2011 at 6:49 PM, Chris Lattner <clattner at apple.com> wrote:

>
> On Jul 10, 2011, at 4:48 AM, arrowdodger wrote:
>
> When compiling
> http://llvm.org/svn/llvm-project/klee/trunk/runtime/Intrinsic/memset.cwith -O2, LoopIdiomRecognizer pass inserts memset intrinsic into function
> body. It causes recursion during execution in klee. Attached patch fixes
> this.
>
>
> Hi arrowdodger,
>
> System code is supposed to build with -fno-builtin.  If clang is using the
> LLVM passes directly, it can set up a TargetLoweringInfo instance that
> disables these transformations.
>
> -Chris
>
>
I've added -fno-builtin to the compile line and it worked, thanks. Patch is
obviously irrelevant now, but you could've pointed me to that flag yesterday
in irc, so i would save one day. =\
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20110710/2e9f01b6/attachment.html>


More information about the llvm-commits mailing list