summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Scalar/SimplifyLibCalls.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Add intrinsic forms of pow and exp2. The non-intrinsicDale Johannesen2008-09-041-0/+10
| | | | | | forms remain to handle older IR files, but will go away soon. llvm-svn: 55781
* Tidy up several unbeseeming casts from pointer to intptr_t.Dan Gohman2008-09-041-1/+1
| | | | llvm-svn: 55779
* Have IRBuilder take a template argument on whether or not to preserveEric Christopher2008-08-081-45/+46
| | | | | | | names. This can save a lot of allocations if you aren't going to be looking at the output. llvm-svn: 54546
* - Re-apply 52748 and friends with fix. GetConstantStringInfo() returns an ↵Evan Cheng2008-06-301-82/+1
| | | | | | | | empty string for ConstantAggregateZero case which surprises selectiondag. - Correctly handle memcpy from constant string which is zero-initialized. llvm-svn: 52891
* Revert (52748 and friends):Anton Korobeynikov2008-06-291-1/+82
| | | | | | | | | | | | Move GetConstantStringInfo to lib/Analysis. Remove string output routine from Constant. Update all callers. Change debug intrinsic api slightly to accomodate move of routine, these now return values instead of strings. This unbreaks llvm-gcc bootstrap. llvm-svn: 52884
* Remove unused function.Eric Christopher2008-06-261-82/+1
| | | | llvm-svn: 52749
* Fix the crash on SimplifyLibCalls/2005-05-20-sprintf-crash.llChris Lattner2008-06-161-1/+1
| | | | llvm-svn: 52295
* lower calls to abs to inline code, PR2337Chris Lattner2008-06-091-1/+26
| | | | llvm-svn: 52138
* Fix PR2341 - when the length is 4 use an i32 notDuncan Sands2008-05-191-8/+10
| | | | | | an i16! Cleaned up trailing whitespace while there. llvm-svn: 51240
* Fix: Some classes were derived from a class in an anonymous namespace, but theyBill Wendling2008-05-051-0/+2
| | | | | | themselves weren't in the anonymous namespace. llvm-svn: 50673
* strength reduce exp2 into ldexp, rdar://5852514Chris Lattner2008-05-021-1/+52
| | | | llvm-svn: 50586
* 1) add '-debug' outputChris Lattner2008-05-011-11/+19
| | | | | | | 2) Return NULL instead of false in several places for tidiness. 3) fix a bug optimizing sprintf(p, "%c", x) llvm-svn: 50521
* Delete the IPO simplify-libcalls and completely reimplement it asChris Lattner2008-05-011-0/+1437
a FunctionPass. This makes it simpler, fixes dozens of bugs, adds a couple of minor features, and shrinks is considerably: from 2214 to 1437 lines. llvm-svn: 50520
OpenPOWER on IntegriCloud