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.
Details
Details
Diff Detail
Diff Detail
Paths
| Differential D47218
[InstCombine] Remove calloc transformations ClosedPublic Authored by xbolva00 on May 22 2018, 12:41 PM.
Details 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.
Diff Detail Event TimelineThis revision is now accepted and ready to land.May 22 2018, 12:56 PM Closed by commit rL333022: [InstCombine] Remove calloc transformations (authored by xbolva00). · Explain WhyMay 22 2018, 1:31 PM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 148077 include/llvm/Analysis/ValueTracking.h
lib/Analysis/MemoryBuiltins.cpp
lib/Analysis/ValueTracking.cpp
lib/Transforms/Utils/SimplifyLibCalls.cpp
test/Transforms/InstCombine/zero-string.ll
|