[llvm-commits] CVS: llvm/lib/Transforms/IPO/SimplifyLibCalls.cpp

2007-04-14 Thread Chris Lattner
Changes in directory llvm/lib/Transforms/IPO: SimplifyLibCalls.cpp updated: 1.111 -> 1.112 --- Log message: fix SimplifyLibCalls/IsDigit.ll --- Diffs of the changes: (+1 -1) SimplifyLibCalls.cpp |2 +- 1 files changed, 1 insertion(+), 1 deletion(-) Index: llvm/lib/Transforms/IPO/Simp

[llvm-commits] CVS: llvm/lib/Transforms/IPO/SimplifyLibCalls.cpp

2007-04-13 Thread Chris Lattner
Changes in directory llvm/lib/Transforms/IPO: SimplifyLibCalls.cpp updated: 1.110 -> 1.111 --- Log message: Implement a few missing xforms: printf("foo\n") -> puts. printf("x") -> putchar printf("") -> noop. Still need to do the xforms for fprintf. This implements Transforms/SimplifyLibCalls

[llvm-commits] CVS: llvm/lib/Transforms/IPO/SimplifyLibCalls.cpp

2007-04-08 Thread Chris Lattner
Changes in directory llvm/lib/Transforms/IPO: SimplifyLibCalls.cpp updated: 1.109 -> 1.110 --- Log message: Fix a typo that broke SimplifyLibCalls/SPrintF.ll (pr1315: http://llvm.org/PR1315 ) --- Diffs of the changes: (+1 -1) SimplifyLibCalls.cpp |2 +- 1 files changed, 1 insertion(+)

[llvm-commits] CVS: llvm/lib/Transforms/IPO/SimplifyLibCalls.cpp

2007-04-08 Thread Chris Lattner
Changes in directory llvm/lib/Transforms/IPO: SimplifyLibCalls.cpp updated: 1.108 -> 1.109 --- Log message: implement a fixme: move optimizations for fwrite out of fputs into a new fwrite optimizer. --- Diffs of the changes: (+56 -26) SimplifyLibCalls.cpp | 82 +++

[llvm-commits] CVS: llvm/lib/Transforms/IPO/SimplifyLibCalls.cpp

2007-04-07 Thread Chris Lattner
Changes in directory llvm/lib/Transforms/IPO: SimplifyLibCalls.cpp updated: 1.107 -> 1.108 --- Log message: Significantly simplify the clients of GetConstantStringInfo, by having it just return the string itself. --- Diffs of the changes: (+153 -234) SimplifyLibCalls.cpp | 387 +++

[llvm-commits] CVS: llvm/lib/Transforms/IPO/SimplifyLibCalls.cpp

2007-04-07 Thread Chris Lattner
Changes in directory llvm/lib/Transforms/IPO: SimplifyLibCalls.cpp updated: 1.106 -> 1.107 --- Log message: Fix problems in the sprintf optimizer --- Diffs of the changes: (+60 -81) SimplifyLibCalls.cpp | 141 +-- 1 files changed, 60 inserti

[llvm-commits] CVS: llvm/lib/Transforms/IPO/SimplifyLibCalls.cpp

2007-04-07 Thread Chris Lattner
Changes in directory llvm/lib/Transforms/IPO: SimplifyLibCalls.cpp updated: 1.105 -> 1.106 --- Log message: Change CastToCStr to take a pointer instead of a reference. Fix some miscompilations in fprintf optimizer. --- Diffs of the changes: (+76 -82) SimplifyLibCalls.cpp | 158 +++

[llvm-commits] CVS: llvm/lib/Transforms/IPO/SimplifyLibCalls.cpp

2007-04-07 Thread Chris Lattner
Changes in directory llvm/lib/Transforms/IPO: SimplifyLibCalls.cpp updated: 1.104 -> 1.105 --- Log message: Fix an off-by-one error that broke Prolangs/deriv2 with llc on x86 and Prolangs-C/cdecl --- Diffs of the changes: (+1 -1) SimplifyLibCalls.cpp |2 +- 1 files changed, 1 insertion

[llvm-commits] CVS: llvm/lib/Transforms/IPO/SimplifyLibCalls.cpp

2007-04-06 Thread Chris Lattner
Changes in directory llvm/lib/Transforms/IPO: SimplifyLibCalls.cpp updated: 1.103 -> 1.104 --- Log message: fix a miscompilation in printf optimizer. --- Diffs of the changes: (+36 -38) SimplifyLibCalls.cpp | 74 --- 1 files changed, 36 ins

[llvm-commits] CVS: llvm/lib/Transforms/IPO/SimplifyLibCalls.cpp

2007-04-06 Thread Chris Lattner
Changes in directory llvm/lib/Transforms/IPO: SimplifyLibCalls.cpp updated: 1.102 -> 1.103 --- Log message: trunc to bool no longer compares against zero --- Diffs of the changes: (+5 -10) SimplifyLibCalls.cpp | 15 +-- 1 files changed, 5 insertions(+), 10 deletions(-) Inde

[llvm-commits] CVS: llvm/lib/Transforms/IPO/SimplifyLibCalls.cpp

2007-04-06 Thread Chris Lattner
Changes in directory llvm/lib/Transforms/IPO: SimplifyLibCalls.cpp updated: 1.101 -> 1.102 --- Log message: cleanups for strlen optimizer --- Diffs of the changes: (+21 -34) SimplifyLibCalls.cpp | 55 +++ 1 files changed, 21 insertions(+),

[llvm-commits] CVS: llvm/lib/Transforms/IPO/SimplifyLibCalls.cpp

2007-04-06 Thread Chris Lattner
Changes in directory llvm/lib/Transforms/IPO: SimplifyLibCalls.cpp updated: 1.100 -> 1.101 --- Log message: Introduce a new ReplaceCallWith method, which simplifies a lot of code. --- Diffs of the changes: (+86 -186) SimplifyLibCalls.cpp | 272 -

[llvm-commits] CVS: llvm/lib/Transforms/IPO/SimplifyLibCalls.cpp

2007-04-06 Thread Chris Lattner
Changes in directory llvm/lib/Transforms/IPO: SimplifyLibCalls.cpp updated: 1.99 -> 1.100 --- Log message: fixes for strcpy optimizer --- Diffs of the changes: (+42 -53) SimplifyLibCalls.cpp | 95 ++- 1 files changed, 42 insertions(+), 53 d

[llvm-commits] CVS: llvm/lib/Transforms/IPO/SimplifyLibCalls.cpp

2007-04-06 Thread Chris Lattner
Changes in directory llvm/lib/Transforms/IPO: SimplifyLibCalls.cpp updated: 1.98 -> 1.99 --- Log message: Fix bugs in strncmp. --- Diffs of the changes: (+52 -62) SimplifyLibCalls.cpp | 114 +++ 1 files changed, 52 insertions(+), 62 deletion

[llvm-commits] CVS: llvm/lib/Transforms/IPO/SimplifyLibCalls.cpp

2007-04-06 Thread Chris Lattner
Changes in directory llvm/lib/Transforms/IPO: SimplifyLibCalls.cpp updated: 1.97 -> 1.98 --- Log message: fix 3 miscompilations and several compielr crashes in strcmp optimizer. --- Diffs of the changes: (+35 -44) SimplifyLibCalls.cpp | 79 ++--

[llvm-commits] CVS: llvm/lib/Transforms/IPO/SimplifyLibCalls.cpp

2007-04-06 Thread Chris Lattner
Changes in directory llvm/lib/Transforms/IPO: SimplifyLibCalls.cpp updated: 1.96 -> 1.97 --- Log message: Fix several nasty bugs in the strchr optimizer, this fixes SimplifyLibCalls/2007-04-06-strchr-miscompile.ll and PR1307: http://llvm.org/PR1307 --- Diffs of the changes: (+53 -47) Si

[llvm-commits] CVS: llvm/lib/Transforms/IPO/SimplifyLibCalls.cpp

2007-04-06 Thread Chris Lattner
Changes in directory llvm/lib/Transforms/IPO: SimplifyLibCalls.cpp updated: 1.95 -> 1.96 --- Log message: clean up strcat optimizer, no functionality change. --- Diffs of the changes: (+21 -28) SimplifyLibCalls.cpp | 49 + 1 files changed,

[llvm-commits] CVS: llvm/lib/Transforms/IPO/SimplifyLibCalls.cpp

2007-04-06 Thread Chris Lattner
Changes in directory llvm/lib/Transforms/IPO: SimplifyLibCalls.cpp updated: 1.94 -> 1.95 --- Log message: rename getConstantStringLength -> GetConstantStringInfo. Make it return the start index of the array as well as the length. No functionality change. --- Diffs of the changes: (+83 -74)

[llvm-commits] CVS: llvm/lib/Transforms/IPO/SimplifyLibCalls.cpp

2007-02-12 Thread Chris Lattner
Changes in directory llvm/lib/Transforms/IPO: SimplifyLibCalls.cpp updated: 1.92 -> 1.93 --- Log message: eliminate a bunch of vector-related heap traffic --- Diffs of the changes: (+53 -47) SimplifyLibCalls.cpp | 100 +++ 1 files changed, 5

[llvm-commits] CVS: llvm/lib/Transforms/IPO/SimplifyLibCalls.cpp

2007-01-20 Thread Owen Anderson
Changes in directory llvm/lib/Transforms/IPO: SimplifyLibCalls.cpp updated: 1.88 -> 1.89 --- Log message: Correct a comment. --- Diffs of the changes: (+1 -1) SimplifyLibCalls.cpp |2 +- 1 files changed, 1 insertion(+), 1 deletion(-) Index: llvm/lib/Transforms/IPO/SimplifyLibCalls.cp

[llvm-commits] CVS: llvm/lib/Transforms/IPO/SimplifyLibCalls.cpp

2007-01-14 Thread Chris Lattner
Changes in directory llvm/lib/Transforms/IPO: SimplifyLibCalls.cpp updated: 1.86 -> 1.87 --- Log message: Eliminate calls to isInteger, generalizing code and tightening checks as needed. --- Diffs of the changes: (+5 -5) SimplifyLibCalls.cpp | 10 +- 1 files changed, 5 insertions

[llvm-commits] CVS: llvm/lib/Transforms/IPO/SimplifyLibCalls.cpp

2007-01-12 Thread Chris Lattner
Changes in directory llvm/lib/Transforms/IPO: SimplifyLibCalls.cpp updated: 1.85 -> 1.86 --- Log message: Remove over-general comparisons --- Diffs of the changes: (+6 -4) SimplifyLibCalls.cpp | 10 ++ 1 files changed, 6 insertions(+), 4 deletions(-) Index: llvm/lib/Transforms/

[llvm-commits] CVS: llvm/lib/Transforms/IPO/SimplifyLibCalls.cpp

2007-01-07 Thread Reid Spencer
Changes in directory llvm/lib/Transforms/IPO: SimplifyLibCalls.cpp updated: 1.82 -> 1.83 --- Log message: Types should be const. --- Diffs of the changes: (+2 -2) SimplifyLibCalls.cpp |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) Index: llvm/lib/Transforms/IPO/SimplifyLib

[llvm-commits] CVS: llvm/lib/Transforms/IPO/SimplifyLibCalls.cpp

2007-01-07 Thread Chris Lattner
Changes in directory llvm/lib/Transforms/IPO: SimplifyLibCalls.cpp updated: 1.81 -> 1.82 --- Log message: Change the interface to Module::getOrInsertFunction to be easier to use,to resolve PR1088: http://llvm.org/PR1088 , and to help PR411: http://llvm.org/PR411 . This simplifies many clients

[llvm-commits] CVS: llvm/lib/Transforms/IPO/SimplifyLibCalls.cpp

2006-12-20 Thread Reid Spencer
Changes in directory llvm/lib/Transforms/IPO: SimplifyLibCalls.cpp updated: 1.78 -> 1.79 --- Log message: Get rid of a useless if statement whose then and else blocks were identical. --- Diffs of the changes: (+1 -4) SimplifyLibCalls.cpp |5 + 1 files changed, 1 insertion(+), 4 del

[llvm-commits] CVS: llvm/lib/Transforms/IPO/SimplifyLibCalls.cpp

2006-12-19 Thread Chris Lattner
Changes in directory llvm/lib/Transforms/IPO: SimplifyLibCalls.cpp updated: 1.77 -> 1.78 --- Log message: switch statistics over to not use static ctors. --- Diffs of the changes: (+3 -3) SimplifyLibCalls.cpp |6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) Index: llvm/li

[llvm-commits] CVS: llvm/lib/Transforms/IPO/SimplifyLibCalls.cpp

2006-12-13 Thread Reid Spencer
Changes in directory llvm/lib/Transforms/IPO: SimplifyLibCalls.cpp updated: 1.75 -> 1.76 --- Log message: Fix some casts. isdigit(c) returns 0 or 1, not 0 or -1 --- Diffs of the changes: (+3 -3) SimplifyLibCalls.cpp |6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) Index: l

[llvm-commits] CVS: llvm/lib/Transforms/IPO/SimplifyLibCalls.cpp

2006-10-25 Thread Reid Spencer
Changes in directory llvm/lib/Transforms/IPO: SimplifyLibCalls.cpp updated: 1.70 -> 1.71 --- Log message: For PR950: http://llvm.org/PR950 : Make necessary changes to support DIV -> [SUF]Div. This changes llvm to have three division instructions: signed, unsigned, floating point. The bytecode a

[llvm-commits] CVS: llvm/lib/Transforms/IPO/SimplifyLibCalls.cpp

2006-06-16 Thread Evan Cheng
Changes in directory llvm/lib/Transforms/IPO: SimplifyLibCalls.cpp updated: 1.66 -> 1.67 --- Log message: Add missing casts. This fixed some regressions. --- Diffs of the changes: (+2 -2) SimplifyLibCalls.cpp |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) Index: llvm/lib/Tr

[llvm-commits] CVS: llvm/lib/Transforms/IPO/SimplifyLibCalls.cpp

2006-06-16 Thread Evan Cheng
Changes in directory llvm/lib/Transforms/IPO: SimplifyLibCalls.cpp updated: 1.65 -> 1.66 --- Log message: More libcall transformations: printf("%s\n", str) -> puts(str) printf("%c", c) -> putchar(c) Also fixed fprintf(file, "%c", c) -> fputc(c, file) --- Diffs of the changes: (+110 -8) Sim

[llvm-commits] CVS: llvm/lib/Transforms/IPO/SimplifyLibCalls.cpp

2006-06-15 Thread Evan Cheng
Changes in directory llvm/lib/Transforms/IPO: SimplifyLibCalls.cpp updated: 1.64 -> 1.65 --- Log message: Simplify fprintf(file, "%s", str) to fputs(str, file). --- Diffs of the changes: (+36 -16) SimplifyLibCalls.cpp | 52 +++ 1 files chan

[llvm-commits] CVS: llvm/lib/Transforms/IPO/SimplifyLibCalls.cpp

2006-03-02 Thread Chris Lattner
Changes in directory llvm/lib/Transforms/IPO: SimplifyLibCalls.cpp updated: 1.62 -> 1.63 --- Log message: Make this work with renamed intrinsics. --- Diffs of the changes: (+25 -26) SimplifyLibCalls.cpp | 51 +-- 1 files changed, 25 inserti

[llvm-commits] CVS: llvm/lib/Transforms/IPO/SimplifyLibCalls.cpp

2006-02-15 Thread Andrew Lenharth
Changes in directory llvm/lib/Transforms/IPO: SimplifyLibCalls.cpp updated: 1.61 -> 1.62 --- Log message: fix a bunch of alpha regressions. see bug 709: http://llvm.cs.uiuc.edu/PR709 --- Diffs of the changes: (+6 -6) SimplifyLibCalls.cpp | 12 ++-- 1 files changed, 6 insertions(

[llvm-commits] CVS: llvm/lib/Transforms/IPO/SimplifyLibCalls.cpp

2006-01-22 Thread Chris Lattner
Changes in directory llvm/lib/Transforms/IPO: SimplifyLibCalls.cpp updated: 1.60 -> 1.61 --- Log message: add a bunch more optimizations for unary double math functions --- Diffs of the changes: (+78 -18) SimplifyLibCalls.cpp | 96 +-- 1 fi

[llvm-commits] CVS: llvm/lib/Transforms/IPO/SimplifyLibCalls.cpp

2006-01-22 Thread Chris Lattner
Changes in directory llvm/lib/Transforms/IPO: SimplifyLibCalls.cpp updated: 1.59 -> 1.60 --- Log message: Refactor/genericize this, no functionality change --- Diffs of the changes: (+30 -16) SimplifyLibCalls.cpp | 46 ++ 1 files changed, 30 i

[llvm-commits] CVS: llvm/lib/Transforms/IPO/SimplifyLibCalls.cpp

2006-01-22 Thread Chris Lattner
Changes in directory llvm/lib/Transforms/IPO: SimplifyLibCalls.cpp updated: 1.58 -> 1.59 --- Log message: Make this more efficient in the following ways: 1. Do not statically construct a map when the program starts up, this is expensive and cannot be optimized. Instead, create a list. 2. Do

[llvm-commits] CVS: llvm/lib/Transforms/IPO/SimplifyLibCalls.cpp

2006-01-22 Thread Chris Lattner
Changes in directory llvm/lib/Transforms/IPO: SimplifyLibCalls.cpp updated: 1.57 -> 1.58 --- Log message: Several non-functionality changing changes: 1. Use the varargs version of getOrInsertFunction to simplify code. 2. remove #include 3. Reduce the number of #ifdef's. 4. remove extraneous ver

[llvm-commits] CVS: llvm/lib/Transforms/IPO/SimplifyLibCalls.cpp

2006-01-19 Thread Reid Spencer
Changes in directory llvm/lib/Transforms/IPO: SimplifyLibCalls.cpp updated: 1.56 -> 1.57 --- Log message: For PR696: http://llvm.cs.uiuc.edu/PR696 : Don't do floor->floorf conversion if floorf is not available. This checks the compiler's host, not its target, which is incorrect for cross-compil

[llvm-commits] CVS: llvm/lib/Transforms/IPO/SimplifyLibCalls.cpp

2006-01-17 Thread Chris Lattner
Changes in directory llvm/lib/Transforms/IPO: SimplifyLibCalls.cpp updated: 1.55 -> 1.56 --- Log message: Clean up the FFS optimization code, and make it correctly create the appropriate unsigned llvm.cttz.* intrinsic, fixing the 2005-05-11-Popcount-ffs-fls regression last night. --- Diffs o