summaryrefslogtreecommitdiffstats
path: root/llvm
Commit message (Collapse)AuthorAgeFilesLines
* Guard against huge loop trip counts in an APInt safe way.Reid Spencer2007-03-021-2/+7
| | | | llvm-svn: 34858
* X86-64 VACOPY needs custom expansion. va_list is a struct { i32, i32, i8*, ↵Evan Cheng2007-03-022-3/+34
| | | | | | i8* }. llvm-svn: 34857
* Make sure debug code is not evaluated in non-debug case.Reid Spencer2007-03-021-2/+3
| | | | llvm-svn: 34856
* 1. Sort switch cases using APInt safe comparison.Reid Spencer2007-03-021-2/+2
| | | | | | 2. Make sure debug output of APInt values is safe for all bit widths. llvm-svn: 34855
* Use APInt safe isOne() method on ConstantInt instead of getZExtValue()==1Reid Spencer2007-03-021-1/+1
| | | | llvm-svn: 34854
* Make sorting of ConstantInt be APInt clean through use of ult function.Reid Spencer2007-03-021-1/+1
| | | | llvm-svn: 34853
* Fix ashr for bitwidths > 64. This is now validated up to 1024 bits.Reid Spencer2007-03-021-33/+49
| | | | llvm-svn: 34852
* Fix uninitialized use of variable. Remove tabs and fix identation.Anton Korobeynikov2007-03-021-19/+19
| | | | llvm-svn: 34850
* Simplify thingsAnton Korobeynikov2007-03-021-8/+2
| | | | llvm-svn: 34849
* Fix a significant algorithm problem with the instcombine worklist. removingChris Lattner2007-03-021-54/+70
| | | | | | | | | | a value from the worklist required scanning the entire worklist to remove all entries. We now use a combination map+vector to prevent duplicates from happening and prevent the scan. This speeds up instcombine on a large file from the llvm-gcc bootstrap from 189.7s to 4.84s in a debug build and from 5.04s to 1.37s in a release build. llvm-svn: 34848
* minor cleanupChris Lattner2007-03-021-6/+2
| | | | llvm-svn: 34846
* Fix PR1234 by working around a compiler bug.Chris Lattner2007-03-021-2/+1
| | | | llvm-svn: 34845
* Mark dead def as unused.Evan Cheng2007-03-021-2/+6
| | | | llvm-svn: 34844
* Dead live-in detection bug.Evan Cheng2007-03-021-2/+2
| | | | llvm-svn: 34843
* Add a new test case.Evan Cheng2007-03-021-0/+85
| | | | llvm-svn: 34842
* - Keep track all def and uses of stack slot available in register.Evan Cheng2007-03-021-28/+51
| | | | | | - Available value use may be deleted (e.g. noop move). llvm-svn: 34841
* testcase for PR1233Chris Lattner2007-03-021-0/+7
| | | | llvm-svn: 34840
* Invalidate last use of a reused register if the use is a deleted noop copy.Evan Cheng2007-03-021-0/+1
| | | | llvm-svn: 34839
* argument lowering should copy from the vreg shadows of live-in argumentsChris Lattner2007-03-021-7/+7
| | | | | | passed in registers, not directly from the pregs themselves. llvm-svn: 34838
* add a noteChris Lattner2007-03-021-0/+22
| | | | llvm-svn: 34837
* Fix a typo.Owen Anderson2007-03-021-1/+1
| | | | llvm-svn: 34836
* Use a better algorithm for rounding sqrt results. Change the FIXME aboutReid Spencer2007-03-021-8/+12
| | | | | | | | | this to a NOTE: because pari/gp results start to get rounded incorrectly after 192 bits of precision. APInt and pari/gp never differ by more than 1, but APInt is more accurate because it does not lose precision after 192 bits as does pari/gp. llvm-svn: 34834
* Implement unionWith.Nick Lewycky2007-03-021-2/+11
| | | | llvm-svn: 34833
* switch the inliner from being recursive to being iterative.Chris Lattner2007-03-021-6/+14
| | | | llvm-svn: 34832
* Fix an unequal bitwidth issue.Reid Spencer2007-03-021-3/+6
| | | | llvm-svn: 34831
* grammaroChris Lattner2007-03-021-1/+1
| | | | llvm-svn: 34830
* Make it 64-bit safe.Evan Cheng2007-03-021-7/+25
| | | | llvm-svn: 34829
* Add a FIXMEReid Spencer2007-03-021-0/+3
| | | | llvm-svn: 34828
* Fix a typo.Reid Spencer2007-03-021-1/+1
| | | | llvm-svn: 34826
* Fix a problem where shifting by 64-bits leads to incorrect results on PPCReid Spencer2007-03-021-1/+4
| | | | | | but not on X86 becuase shift by word size is "undefined". llvm-svn: 34825
* eliminate unnecessary reset of SP in epilog on darwinDale Johannesen2007-03-021-1/+1
| | | | llvm-svn: 34824
* Reverse a premature commital.Reid Spencer2007-03-021-21/+17
| | | | llvm-svn: 34822
* Prefer non-virtual calls to ConstantInt::isZero over virtual calls toReid Spencer2007-03-029-42/+46
| | | | | | Constant::isNullValue() in situations where it is possible. llvm-svn: 34821
* Add a non-virtual test for zero, isZero, and rename isUnitValue isOne.Reid Spencer2007-03-021-2/+10
| | | | | | | These will be used in upcoming patches to avoid virtual function call when the client knows it is a ConstantInt. llvm-svn: 34820
* Add an abs() function to get the absolute value.Reid Spencer2007-03-011-0/+8
| | | | llvm-svn: 34819
* Combine two lines that can be.Reid Spencer2007-03-011-2/+1
| | | | llvm-svn: 34818
* Remove virtual keyword from method that doesn't need to be virtual.Reid Spencer2007-03-011-1/+1
| | | | llvm-svn: 34817
* Make it possible to create an SCEVUnknown from an APInt as well as an int.Reid Spencer2007-03-012-0/+6
| | | | llvm-svn: 34816
* Although probably not necessary, guard against a potential assertion byReid Spencer2007-03-011-1/+1
| | | | | | using isNullValue() instead of getZExtValue() == 0. llvm-svn: 34815
* Use isUnitValue() instead of getZExtValue() == 1 which will prevent anReid Spencer2007-03-011-1/+1
| | | | | | assert if the ConstantInt's value is large. llvm-svn: 34814
* Add an isUnitValue method for comparison against 1. This just follows aReid Spencer2007-03-011-0/+7
| | | | | | | | common pattern with isNullValue, isAllOnesValue, etc. It also helps to prevent things like getZExtValue() == 1, which could assert for large bitwidths. llvm-svn: 34813
* Use GCC intrinsics when available, and use smarter fallbacks when not.Owen Anderson2007-03-011-2/+26
| | | | llvm-svn: 34812
* Clarify the use of getValue/getSExtValue/getZExtValue and add the newReid Spencer2007-03-011-4/+14
| | | | | | APInt constructor. llvm-svn: 34811
* Use APInt conversion to string so the result is correct regardless of theReid Spencer2007-03-011-1/+1
| | | | | | bit width of the ConstantInt being converted. llvm-svn: 34810
* Make output for ConstantInt construction correct for any bitwidth.Reid Spencer2007-03-011-1/+2
| | | | llvm-svn: 34809
* Use the APInt versions of the bit-wise conversions of float/double to intReid Spencer2007-03-011-8/+10
| | | | | | | | and back. While this is not strictly necessary, it does pave the way for future changes in casting. It should now be possible to improve vector casting to deal with un-equal fp/int sizes. llvm-svn: 34808
* Add doubleToBits and floatToBits methods.Reid Spencer2007-03-011-0/+34
| | | | llvm-svn: 34807
* Use modern variable name. ConstantUnsignedInt is long since dead. NoReid Spencer2007-03-011-2/+2
| | | | | | functional change with this patch. llvm-svn: 34806
* Emit eh filter info.Jim Laskey2007-03-011-18/+66
| | | | llvm-svn: 34805
* Collect eh filter info.Jim Laskey2007-03-012-12/+26
| | | | llvm-svn: 34804
OpenPOWER on IntegriCloud