llvm/lib/Transforms
Chris Lattner 5b222d748a Implement more aggressive support for analyzing string length. This
generalizes the previous code to handle the case when the string is not
an immediate to the strlen call (for example, crazy stuff like 
strlen(c ? "foo" : "bart"+1) -> 3).  This implements 
gcc.c-torture/execute/builtins/strlen-2.c.  I will generalize other
cases in simplifylibcalls to use the same routine later.



git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@50408 91177308-0d34-0410-b5e6-96231b3b80d8
2008-04-29 06:56:02 +00:00
..
Hello Remove attribution from file headers, per discussion on llvmdev. 2007-12-29 20:36:04 +00:00
Instrumentation Use Intrinsic::getDeclaration in more places. 2008-04-07 13:45:04 +00:00
IPO Implement more aggressive support for analyzing string length. This 2008-04-29 06:56:02 +00:00
Scalar Clarify what we mean by a dead loop. 2008-04-29 06:34:55 +00:00
Utils Fix PR2256, yet another miscompilation in simplifycfg of i 2008-04-28 00:19:07 +00:00
Makefile remove attribution from lib Makefiles. 2007-12-29 20:09:26 +00:00