Migrate _chk call lowering from SimplifyLibCalls to InstCombine. Stub
authorEric Christopher <echristo@apple.com>
Sat, 6 Mar 2010 10:50:38 +0000 (10:50 +0000)
committerEric Christopher <echristo@apple.com>
Sat, 6 Mar 2010 10:50:38 +0000 (10:50 +0000)
commit27ceaa13f820e33c44e29adc2095dd3e1e69d09f
tree326118e8234e34f93c10bad9aed41cc6b4a3c581
parent44f1680cdfe75a68ef944679176de713cff8c787
Migrate _chk call lowering from SimplifyLibCalls to InstCombine. Stub
out the remainder of the calls that we should lower in some way and
move the tests to the new correct directory. Fix up tests that are now
optimized more than they were before by -instcombine.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@97875 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/InstCombine/InstCombine.h
lib/Transforms/InstCombine/InstCombineCalls.cpp
lib/Transforms/Scalar/SimplifyLibCalls.cpp
test/Transforms/InstCombine/memset_chk.ll [new file with mode: 0644]
test/Transforms/InstCombine/objsize.ll
test/Transforms/InstCombine/strcpy_chk.ll [new file with mode: 0644]
test/Transforms/SimplifyLibCalls/memset_chk.ll [deleted file]
test/Transforms/SimplifyLibCalls/strcpy_chk.ll [deleted file]