[llvm-commits] [PATCH] Do not run LoopIdiomRecognizerPass inside memset() and friends.
Chris Lattner
clattner at apple.com
Sun Jul 10 07:49:43 PDT 2011
On Jul 10, 2011, at 4:48 AM, arrowdodger wrote:
> When compiling http://llvm.org/svn/llvm-project/klee/trunk/runtime/Intrinsic/memset.c with -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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20110710/522e9700/attachment.html>
More information about the llvm-commits
mailing list