aboutsummaryrefslogtreecommitdiff
path: root/lib/Transforms/Scalar/SimplifyLibCalls.cpp
AgeCommit message (Expand)Author
2011-02-12SimplifyLibCalls: Add missing legalize check on various printf to puts andDaniel Dunbar
2010-12-27SimplifyLibCalls: Use IRBuilder to simplify code.Benjamin Kramer
2010-12-17Revert r64460. strtol and friends cannot be marked readonly, even withDan Gohman
2010-11-30Add a puts optimization that converts puts() to putchar('\n').Anders Carlsson
2010-10-19Get rid of static constructors for pass registration. Instead, every pass ex...Owen Anderson
2010-10-07Now with fewer extraneous semicolons!Owen Anderson
2010-09-30Tighten up prototype verification of strchr and strrchr to avoid a crash in t...Benjamin Kramer
2010-09-30Add constant folding for strspn and strcspn to SimplifyLibCalls.Benjamin Kramer
2010-09-29Add strpbrk folding to SimplifyLibCalls.Benjamin Kramer
2010-09-29Simplify the loop in StrChrOptimizer. FileCheckize test.Benjamin Kramer
2010-09-29Teach SimplifyLibCalls how to optimize strrchr.Benjamin Kramer
2010-08-06Reapply r110396, with fixes to appease the Linux buildbot gods.Owen Anderson
2010-08-06Revert r110396 to fix buildbots.Owen Anderson
2010-08-05Don't use PassInfo* as a type identifier for passes. Instead, use the addres...Owen Anderson
2010-08-04Fix a comment.Dan Gohman
2010-07-22mass elimination of reliance on automatic iterator dereferencingGabor Greif
2010-07-22undo 80 column trespassing I causedGabor Greif
2010-07-21Fix batch of converting RegisterPass<> to INTIALIZE_PASS().Owen Anderson
2010-07-06Detabify this file.Nick Lewycky
2010-06-30use ArgOperand APIGabor Greif
2010-06-24use ArgOperand APIGabor Greif
2010-06-16Make sure that simplify libcalls does not replace a call with one callingRafael Espindola
2010-06-16simplify-libcalls: fold strncmp(x, y, 1) -> memcmp(x, y, 1)Benjamin Kramer
2010-06-15simplify-libcalls: fold strstr(a, b) == a -> strncmp(a, b, strlen(b)) == 0Benjamin Kramer
2010-05-26Kill unneeded SExt.Benjamin Kramer
2010-05-25Properly promote operands when optimizing a single-character memcmp.Benjamin Kramer
2010-04-16Revert 101465, it broke internal OpenGL testing.Eric Christopher
2010-04-16reapply r101434Gabor Greif
2010-04-16back out r101423 and r101397, they break llvm-gcc self-host on darwin10Gabor Greif
2010-04-15reapply r101364, which has been backed out in r101368Gabor Greif
2010-04-15back out r101364, as it trips the linux nightlybot on some clang C++ testsGabor Greif
2010-04-15rotate CallInst operands, i.e. move callee to the backGabor Greif
2010-04-04Reapply address space patch after fixing an issue in MemCopyOptimizer.Mon P Wang
2010-04-02Revert r100191 since it breaks objc in clang Mon P Wang
2010-04-02Reapply address space patch after fixing an issue in MemCopyOptimizer.Mon P Wang
2010-03-30Revert Mon Ping's change 99928, since it broke all the llvm-gcc buildbots.Bob Wilson
2010-03-30Added support for address spaces and added a isVolatile field to memcpy, memm...Mon P Wang
2010-03-24Move OptChkCall off LibCallOptimization into StrCpyOpt.Evan Cheng
2010-03-23Teach simplify libcall to transform __strcpy_chk to __memcpy_chk to enable op...Evan Cheng
2010-03-16str[r]chr returns its pointer argument so we cannot mark it as nocapture. Tha...Benjamin Kramer
2010-03-16Mark str[r]chr readonly.Benjamin Kramer
2010-03-06Migrate _chk call lowering from SimplifyLibCalls to InstCombine. StubEric Christopher
2010-03-05Move SimplifyLibCalls's LibCall builders to a separate file so theyEric Christopher
2010-03-05Safely turn memset_chk etc. to non-chk variant if the known object size is >=...Evan Cheng
2010-03-05Move GetStringLength and helper from SimplifyLibCalls to ValueTracking.Eric Christopher
2010-02-16There are two ways of checking for a given type, for example isa<PointerType>(T)Duncan Sands
2010-02-15Uniformize the names of type predicates: rather than having isFloatTy andDuncan Sands
2010-02-03Recommit this, looks like it wasn't the cause.Eric Christopher
2010-02-02Hopefully temporarily revert this.Eric Christopher
2010-02-02Re-add strcmp and known size object size checking optimization.Eric Christopher