llvm-6502/lib
Meador Inge fa9d1372c9 instcombine: Split out the __stpcpy_chk simplifications from StrCpyChkOpt
r166198 migrated the strcpy optimization to instcombine.  The strcpy
simplifier that was migrated from Transforms/Scalar/SimplifyLibCalls.cpp
was also doing some __strcpy_chk simplifications.  Those fortified
simplifications were migrated as well, but introduced a bug in the
__stpcpy_chk simplifier in the process.  This happened because the
__strcpy_chk and __stpcpy_chk simplifiers were both mapped to StrCpyChkOpt
which was updated with simplifications that worked for __strcpy_chk, but
not __stpcpy_chk.

This patch fixes the problem by adding proper test coverage and creating a
new simplifier for __stpcpy_chk (instead of sharing one with __strcpy_chk).

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@167082 91177308-0d34-0410-b5e6-96231b3b80d8
2012-10-31 00:20:51 +00:00
..
Analysis Remove code to saturate profile counts. 2012-10-29 17:27:39 +00:00
Archive
AsmParser Change ForceSizeOpt attribute into MinSize attribute 2012-10-30 16:32:52 +00:00
Bitcode
CodeGen [inline asm] Get the mayLoad/mayStore directly from the MIOp_ExtraInfo operand. 2012-10-30 20:39:19 +00:00
DebugInfo Reformat and 80-column this. It's not strictly conforming 2012-10-30 21:36:43 +00:00
ExecutionEngine Fix regression in old-style JIT. 2012-10-30 22:21:55 +00:00
Linker
MC [ms-inline asm] Add support for the TYPE operator. 2012-10-26 18:04:20 +00:00
Object Add interface for querying object files for symbol values. 2012-10-29 10:47:00 +00:00
Support APFloat cleanup: Remove now unused "arithmeticOK" logic. 2012-10-29 18:18:44 +00:00
TableGen
Target X86 SSE: update rsqrtss and rcpss to use two source operands and 2012-10-30 23:53:59 +00:00
Transforms instcombine: Split out the __stpcpy_chk simplifications from StrCpyChkOpt 2012-10-31 00:20:51 +00:00
VMCore Change ForceSizeOpt attribute into MinSize attribute 2012-10-30 16:32:52 +00:00
CMakeLists.txt
LLVMBuild.txt
Makefile