aboutsummaryrefslogtreecommitdiff
path: root/lib/Transforms/Scalar/SimplifyLibCalls.cpp
AgeCommit message (Expand)Author
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
2010-02-02Don't need to check the last argument since it'll always be bool. We alsoEric Christopher
2010-02-02More indentation/tabification fixes.Eric Christopher
2010-02-02Untabify previous commit.Eric Christopher
2010-02-01Formatting.Eric Christopher
2010-01-29Revert my last couple of patches. They appear to have broken bison.Eric Christopher
2010-01-29Make strcpy_chk lower to strcpy if we have a safe size.Eric Christopher
2010-01-23Reapply 94059 while fixing the calling convention setupEric Christopher
2010-01-22Revert 94059. It is breaking the MultiSource/Benchmarks/Prolangs-C/bisonBob Wilson
2010-01-21Add strcpy_chk -> strcpy support for "don't know" object sizeEric Christopher
2010-01-06Move the object size intrinsic optimization to inst-combine and makeEric Christopher
2010-01-06Formatting.Mikhail Glushenkov
2010-01-05Move remaining stuff to the isInteger predicate.Benjamin Kramer
2010-01-05Change errs() to dbgs().David Greene
2010-01-0480-col violations, trailing whitespace.Mikhail Glushenkov
2009-12-24move an optimization for memcmp out of simplifylibcalls and into Chris Lattner
2009-12-23reorder to follow a normal fall-through style, no functionality change.Chris Lattner
2009-12-23Update objectsize intrinsic and associated dependencies. FixEric Christopher
2009-12-22Whitespace fixes.Eric Christopher
2009-12-16reapply my strstr optimization. I have reproduced the x86-64 bootstrapChris Lattner
2009-12-16revert my strstr optimization, I'm told it breaks x86-64 bootstrap.Chris Lattner
2009-12-15optimize strstr, PR5783Chris Lattner