aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Transforms/Scalar/SimplifyLibCalls.cpp
AgeCommit message (Expand)AuthorFilesLines
2011-07-18land David Blaikie's patch to de-constify Type, with a few tweaks.Chris Lattner1-33/+33
2011-07-14Change Intrinsic::getDeclaration and friends to take an ArrayRef.Benjamin Kramer1-1/+1
2011-07-12Second attempt at de-constifying LLVM Types in FunctionType::get(),Jay Foad1-1/+1
2011-07-12Revert r134893 and r134888 (and related patches in other trees). It was causingBill Wendling1-1/+1
2011-07-11De-constify Types in FunctionType::get().Jay Foad1-1/+1
2011-03-09Preserve line number information while simplifying libcalls.Devang Patel1-0/+3
2011-03-03Fix typo in comment.Richard Osborne1-1/+1
2011-03-03Optimize fprintf -> iprintf if there are no floating point argumentsRichard Osborne1-8/+28
2011-03-03Optimize sprintf -> siprintf if there are no floating point argumentsRichard Osborne1-8/+28
2011-03-03Optimize printf -> iprintf if there are no floating point argumentsRichard Osborne1-10/+42
2011-02-24wire TargetLibraryInfo into simplify libcalls and use it in a couple ofChris Lattner1-7/+17
2011-02-24move a massive amount of code out into its own helper functionChris Lattner1-676/+643
2011-02-12SimplifyLibCalls: Add missing legalize check on various printf to puts andDaniel Dunbar1-5/+9
2010-12-27SimplifyLibCalls: Use IRBuilder to simplify code.Benjamin Kramer1-67/+48
2010-12-17Revert r64460. strtol and friends cannot be marked readonly, even withDan Gohman1-1/+2
2010-11-30Add a puts optimization that converts puts() to putchar('\n').Anders Carlsson1-3/+30
2010-10-19Get rid of static constructors for pass registration. Instead, every pass ex...Owen Anderson1-1/+3
2010-10-07Now with fewer extraneous semicolons!Owen Anderson1-1/+1
2010-09-30Tighten up prototype verification of strchr and strrchr to avoid a crash in t...Benjamin Kramer1-2/+4
2010-09-30Add constant folding for strspn and strcspn to SimplifyLibCalls.Benjamin Kramer1-9/+64
2010-09-29Add strpbrk folding to SimplifyLibCalls.Benjamin Kramer1-7/+42
2010-09-29Simplify the loop in StrChrOptimizer. FileCheckize test.Benjamin Kramer1-11/+4
2010-09-29Teach SimplifyLibCalls how to optimize strrchr.Benjamin Kramer1-6/+44
2010-08-06Reapply r110396, with fixes to appease the Linux buildbot gods.Owen Anderson1-1/+1
2010-08-06Revert r110396 to fix buildbots.Owen Anderson1-1/+1
2010-08-05Don't use PassInfo* as a type identifier for passes. Instead, use the addres...Owen Anderson1-1/+1
2010-08-04Fix a comment.Dan Gohman1-1/+1
2010-07-22mass elimination of reliance on automatic iterator dereferencingGabor Greif1-1/+1
2010-07-22undo 80 column trespassing I causedGabor Greif1-8/+9
2010-07-21Fix batch of converting RegisterPass<> to INTIALIZE_PASS().Owen Anderson1-2/+2
2010-07-06Detabify this file.Nick Lewycky1-7/+7
2010-06-30use ArgOperand APIGabor Greif1-10/+12
2010-06-24use ArgOperand APIGabor Greif1-75/+75
2010-06-16Make sure that simplify libcalls does not replace a call with one callingRafael Espindola1-0/+5
2010-06-16simplify-libcalls: fold strncmp(x, y, 1) -> memcmp(x, y, 1)Benjamin Kramer1-0/+3
2010-06-15simplify-libcalls: fold strstr(a, b) == a -> strncmp(a, b, strlen(b)) == 0Benjamin Kramer1-0/+31
2010-05-26Kill unneeded SExt.Benjamin Kramer1-1/+1
2010-05-25Properly promote operands when optimizing a single-character memcmp.Benjamin Kramer1-3/+6
2010-04-16Revert 101465, it broke internal OpenGL testing.Eric Christopher1-75/+75
2010-04-16reapply r101434Gabor Greif1-75/+75
2010-04-16back out r101423 and r101397, they break llvm-gcc self-host on darwin10Gabor Greif1-75/+75
2010-04-15reapply r101364, which has been backed out in r101368Gabor Greif1-75/+75
2010-04-15back out r101364, as it trips the linux nightlybot on some clang C++ testsGabor Greif1-75/+75
2010-04-15rotate CallInst operands, i.e. move callee to the backGabor Greif1-75/+75
2010-04-04Reapply address space patch after fixing an issue in MemCopyOptimizer.Mon P Wang1-13/+16
2010-04-02Revert r100191 since it breaks objc in clang Mon P Wang1-16/+13
2010-04-02Reapply address space patch after fixing an issue in MemCopyOptimizer.Mon P Wang1-13/+16
2010-03-30Revert Mon Ping's change 99928, since it broke all the llvm-gcc buildbots.Bob Wilson1-16/+13
2010-03-30Added support for address spaces and added a isVolatile field to memcpy, memm...Mon P Wang1-13/+16
2010-03-24Move OptChkCall off LibCallOptimization into StrCpyOpt.Evan Cheng1-7/+6