| Commit message (Collapse) | Author | Age | Files | Lines | |
|---|---|---|---|---|---|
| * | Do not let MaskedValueIsZero consider undef to be zero, for reasons | Chris Lattner | 2005-07-20 | 1 | -2/+8 |
| | | | | | | | | | explained in the comment. This fixes UnitTests/2003-09-18-BitFieldTest on darwin llvm-svn: 22483 | ||||
| * | When transforming &A[i] < &A[j] -> i < j, make sure to perform the comparison | Chris Lattner | 2005-07-18 | 1 | -4/+11 |
| | | | | | | | as a signed compare. This patch may fix PR597, but is correct in any case. llvm-svn: 22465 | ||||
| * | Fix a problem that instcombine would hit when dealing with unreachable code. | Chris Lattner | 2005-07-07 | 1 | -5/+29 |
| | | | | | | | | | | Because the instcombine has to scan the entire function when it starts up to begin with, we might as well do it in DFO so we can nuke unreachable code. This fixes: Transforms/InstCombine/2005-07-07-DeadPHILoop.ll llvm-svn: 22348 | ||||
| * | Fix PR590 and Transforms/Mem2Reg/2005-06-30-ReadBeforeWrite.ll. | Chris Lattner | 2005-06-30 | 1 | -19/+65 |
| | | | | | | | | | The optimization for locally used allocas was not safe for allocas that were read before they were written. This change disables that optimization in that case. llvm-svn: 22318 | ||||
| * | Doh! Forgot to LLVMify the style. | John Criswell | 2005-06-29 | 1 | -2/+0 |
| | | | | | llvm-svn: 22312 | ||||
| * | Basic fix for PR#591; don't convert an fprintf() to an fwrite() if there | John Criswell | 2005-06-29 | 1 | -0/+9 |
| | | | | | | | | | | is a mismatch in their character type pointers (i.e. fprintf() prints an array of ubytes while fwrite() takes an array of sbytes). We can probably do better than this (such as casting the ubyte to an sbyte). llvm-svn: 22310 | ||||
| * | add a debug type | Chris Lattner | 2005-06-24 | 1 | -0/+1 |
| | | | | | llvm-svn: 22277 | ||||
| * | prevent va_arg from being hoisted from a loop | Andrew Lenharth | 2005-06-20 | 1 | -1/+1 |
| | | | | | llvm-svn: 22265 | ||||
| * | prevent DCE of vaarg intrinsics. This should take care of most regressions | Andrew Lenharth | 2005-06-19 | 1 | -2/+0 |
| | | | | | llvm-svn: 22263 | ||||
| * | core changes for varargs | Andrew Lenharth | 2005-06-18 | 1 | -1/+1 |
| | | | | | llvm-svn: 22254 | ||||
| * | Fix a problem with the strcmp optimization checking the wrong string and | Reid Spencer | 2005-06-18 | 1 | -13/+16 |
| | | | | | | | not casting to the correct type. llvm-svn: 22250 | ||||
| * | Clean up some uninitialized variables and missing return statements that | Reid Spencer | 2005-06-18 | 1 | -3/+3 |
| | | | | | | | GCC 4.0.0 compiler (sometimes incorrectly) warns about under release build. llvm-svn: 22249 | ||||
| * | This is not true: (X != 13 | X < 15) -> X < 15 | Chris Lattner | 2005-06-17 | 1 | -2/+1 |
| | | | | | | | | It is actually always true. This fixes PR586 and Transforms/InstCombine/2005-06-16-SetCCOrSetCCMiscompile.ll llvm-svn: 22236 | ||||
| * | Don't crash when dealing with INTMIN. This fixes PR585 and | Chris Lattner | 2005-06-17 | 1 | -0/+2 |
| | | | | | | | Transforms/InstCombine/2005-06-16-RangeCrash.ll llvm-svn: 22234 | ||||
| * | Don't crash on: X = phi (X, X). | Chris Lattner | 2005-06-17 | 1 | -6/+9 |
| | | | | | | | This fixes PR584 and Transforms/SimplifyCFG/2005-06-16-PHICrash.ll llvm-svn: 22232 | ||||
| * | avoid constructing out of range shift amounts. | Chris Lattner | 2005-06-17 | 1 | -2/+4 |
| | | | | | llvm-svn: 22230 | ||||
| * | Fix PR583 and testcase Transforms/InstCombine/2005-06-15-DivSelectCrash.ll | Chris Lattner | 2005-06-16 | 1 | -1/+1 |
| | | | | | llvm-svn: 22227 | ||||
| * | Fix PR571, removing code that does just the WRONG thing :) | Chris Lattner | 2005-06-16 | 1 | -27/+1 |
| | | | | | llvm-svn: 22225 | ||||
| * | Fix a bug in my previous patch. Do not get the shift amount type (which | Chris Lattner | 2005-06-16 | 1 | -1/+1 |
| | | | | | | | is always ubyte, get the type being shifted). This unbreaks espresso llvm-svn: 22224 | ||||
| * | Fix PR575, patch provided by John Mellor-Crummey. Thanks! | Chris Lattner | 2005-06-15 | 1 | -0/+1 |
| | | | | | llvm-svn: 22223 | ||||
| * | Fix PR582. The rewriter can move casts around, which invalidated the | Chris Lattner | 2005-06-15 | 1 | -1/+11 |
| | | | | | | | BB iterator. This fixes Transforms/IndVarsSimplify/2005-06-15-InstMoveCrash.ll llvm-svn: 22221 | ||||
| * | Do not promote globals only used by main to locals if there are constantexprs | Chris Lattner | 2005-06-15 | 1 | -3/+11 |
| | | | | | | | or other uses hanging off of them. llvm-svn: 22219 | ||||
| * | Fix PR577 and testcase InstCombine/2005-06-15-ShiftSetCCCrash.ll. | Chris Lattner | 2005-06-15 | 1 | -2/+16 |
| | | | | | | | Do not perform undefined out of range shifts. llvm-svn: 22217 | ||||
| * | Put the hack back in that removes features, causes regressions to fail, but | Reid Spencer | 2005-06-15 | 1 | -0/+2 |
| | | | | | | | allows test programs to succeed. Actual fix for this is forthcoming. llvm-svn: 22213 | ||||
| * | Unbreak several InstCombine regression checks introduced by a hack to | Reid Spencer | 2005-06-13 | 1 | -2/+0 |
| | | | | | | | fix the bzip2 test. A better hack is needed. llvm-svn: 22209 | ||||
| * | Fix a 64-bit problem, passing (int)0 through ... instead of (void*)0 | Chris Lattner | 2005-06-09 | 1 | -4/+4 |
| | | | | | llvm-svn: 22206 | ||||
| * | Fix a problem on 64-bit targets where we passed (int)0 through ... instead of | Chris Lattner | 2005-06-09 | 1 | -7/+7 |
| | | | | | | | (void*)0. llvm-svn: 22205 | ||||
| * | hack to fix bzip2 (bug 571) | Andrew Lenharth | 2005-06-04 | 1 | -0/+2 |
| | | | | | llvm-svn: 22192 | ||||
| * | Make the registration hash_map static. No other module needs it. Also, | Reid Spencer | 2005-05-21 | 1 | -1/+5 |
| | | | | | | | document what its for a little better. llvm-svn: 22164 | ||||
| * | Adjust the file comment to read a little easier. | Reid Spencer | 2005-05-21 | 1 | -6/+7 |
| | | | | | llvm-svn: 22163 | ||||
| * | Make sure ... arguments are casted to sbyte* where needed. | Reid Spencer | 2005-05-21 | 1 | -13/+12 |
| | | | | | llvm-svn: 22162 | ||||
| * | Add a "brief" comment for CastToCStr | Reid Spencer | 2005-05-21 | 1 | -0/+1 |
| | | | | | llvm-svn: 22161 | ||||
| * | Fix mismatched type problem that crashed on cases like this: | Chris Lattner | 2005-05-20 | 1 | -8/+17 |
| | | | | | | | | | sprintf(P, "%s", X); Where X is not an sbyte*. This fixes the bug JohnMC reported on llvm-bugs. llvm-svn: 22159 | ||||
| * | Fix Transforms/SimplifyCFG/switch-simplify-crash.ll | Chris Lattner | 2005-05-20 | 1 | -0/+7 |
| | | | | | llvm-svn: 22158 | ||||
| * | teach the inliner about coldcc and noreturn functions | Chris Lattner | 2005-05-18 | 1 | -0/+15 |
| | | | | | llvm-svn: 22113 | ||||
| * | Don't look for __builtin_ffs, we'll never see it from llvm-gcc and there's | Reid Spencer | 2005-05-15 | 1 | -14/+0 |
| | | | | | | | not reason to include it for other front ends. llvm-svn: 22070 | ||||
| * | Provide this optimization as well: | Reid Spencer | 2005-05-15 | 1 | -5/+45 |
| | | | | | | | ffs(x) -> (x == 0 ? 0 : 1+llvm.cttz(x)) llvm-svn: 22068 | ||||
| * | Duh .. you actually have to #include Config/config.h before you can test | Reid Spencer | 2005-05-15 | 1 | -0/+1 |
| | | | | | | | for one of the values that it defines! llvm-svn: 22058 | ||||
| * | Changes for ffs lib call simplification: | Reid Spencer | 2005-05-14 | 1 | -3/+74 |
| | | | | | | | | | * Check for availability of ffsll call in configure script * Support ffs, ffsl, and ffsll conversion to constant value if the argument is constant. llvm-svn: 22027 | ||||
| * | Preserve calling conv when hacking on calls | Chris Lattner | 2005-05-14 | 2 | -0/+6 |
| | | | | | llvm-svn: 22025 | ||||
| * | preserve calling conventions when hacking on code | Chris Lattner | 2005-05-14 | 2 | -1/+4 |
| | | | | | llvm-svn: 22024 | ||||
| * | Make sure to preserve the calling convention when changing an invoke into | Chris Lattner | 2005-05-14 | 1 | -0/+2 |
| | | | | | | | | a call. This fixes Prolangs-C++/deriv2, kimwitu++, and Misc-C++/bigfib on X86 with -enable-x86-fastcc. llvm-svn: 22023 | ||||
| * | calling a function with the wrong CC is undefined, turn it into an unreachable | Chris Lattner | 2005-05-13 | 1 | -0/+14 |
| | | | | | | | | instruction. This is useful for catching optimizers that don't preserve calling conventions llvm-svn: 21928 | ||||
| * | When lowering invokes to calls, amke sure to preserve the calling conv. This | Chris Lattner | 2005-05-13 | 1 | -7/+9 |
| | | | | | | | fixes Ptrdist/anagram with x86 llcbeta llvm-svn: 21925 | ||||
| * | Prefer int 0 instead of long 0 for GEP arguments. | Chris Lattner | 2005-05-13 | 1 | -3/+3 |
| | | | | | llvm-svn: 21924 | ||||
| * | Fix Reassociate/shifttest.ll | Chris Lattner | 2005-05-10 | 1 | -6/+7 |
| | | | | | llvm-svn: 21839 | ||||
| * | If a function contains no allocas, all of the calls in it are trivially | Chris Lattner | 2005-05-09 | 1 | -3/+45 |
| | | | | | | | suitable for tail calls. llvm-svn: 21836 | ||||
| * | implement and.ll:test33 | Chris Lattner | 2005-05-09 | 1 | -2/+18 |
| | | | | | llvm-svn: 21809 | ||||
| * | Preserve calling conventions when doing IPO | Chris Lattner | 2005-05-09 | 3 | -5/+13 |
| | | | | | llvm-svn: 21798 | ||||
| * | wrap long lines, preserve calling conventions when cloning functions and | Chris Lattner | 2005-05-09 | 2 | -6/+14 |
| | | | | | | | turning calls into invokes llvm-svn: 21797 | ||||

