[InstCombine] Remove calloc transformations
authorDavid Bolvansky <david.bolvansky@gmail.com>
Tue, 22 May 2018 20:27:36 +0000 (20:27 +0000)
committerDavid Bolvansky <david.bolvansky@gmail.com>
Tue, 22 May 2018 20:27:36 +0000 (20:27 +0000)
commit1f343fa0e0fe95055ff29c571821c5f91215daeb
treef3c18fd19c52fa1fa9051ce0e54d619fba04801e
parent3ad27e92bcd4b761a174eca003cfcad6ad36a436
[InstCombine] Remove calloc transformations

Summary: Previous patch does not care if a value is changed between calloc and strlen. This needs to be removed from InstCombine and maybe moved to DSE later after some rework.

Reviewers: efriedma

Reviewed By: efriedma

Subscribers: llvm-commits

Differential Revision: https://reviews.llvm.org/D47218

llvm-svn: 333022
llvm/include/llvm/Analysis/ValueTracking.h
llvm/lib/Analysis/MemoryBuiltins.cpp
llvm/lib/Analysis/ValueTracking.cpp
llvm/lib/Transforms/Utils/SimplifyLibCalls.cpp
llvm/test/Transforms/InstCombine/zero-string.ll