OSDN Git Service

instcombine: Migrate strncpy optimizations
authorMeador Inge <meadori@codesourcery.com>
Wed, 31 Oct 2012 03:33:00 +0000 (03:33 +0000)
committerMeador Inge <meadori@codesourcery.com>
Wed, 31 Oct 2012 03:33:00 +0000 (03:33 +0000)
commita0885fb8825ed362041b5cf291a007a9f9301ff8
tree43c9bc8a05a51d1c756183727de3de7a5f0d1a65
parent5b2c4dc5f8f70352f029d595797089821eb39b3c
instcombine: Migrate strncpy optimizations

This patch migrates the strncpy optimizations from the simplify-libcalls
pass into the instcombine library call simplifier.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@167102 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/SimplifyLibCalls.cpp
lib/Transforms/Utils/SimplifyLibCalls.cpp
test/Transforms/InstCombine/strncpy-1.ll [new file with mode: 0644]
test/Transforms/InstCombine/strncpy-2.ll [new file with mode: 0644]
test/Transforms/InstCombine/strncpy_chk-1.ll
test/Transforms/SimplifyLibCalls/StrNCpy.ll [deleted file]