Give up on array allocas in getPointerDereferenceableBytes
authorBjorn Steinbrink <bsteinbr@gmail.com>
Wed, 20 Dec 2017 10:01:30 +0000 (10:01 +0000)
committerBjorn Steinbrink <bsteinbr@gmail.com>
Wed, 20 Dec 2017 10:01:30 +0000 (10:01 +0000)
commit030123e8e8fe46be132cbf4b4d1240e8d5c446fe
treeba522c833223350111da9cbf932913fbdf622757
parentc067c30d9ee767907fab866d919d545181f96a78
Give up on array allocas in getPointerDereferenceableBytes

Summary:
As suggested by Eli Friedman, don't try to handle array allocas here,
because of possible overflows, instead rely on instcombine converting
them to allocations of array types.

Reviewers: efriedma

Subscribers: llvm-commits

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

llvm-svn: 321159
llvm/lib/IR/Value.cpp
llvm/test/Analysis/ValueTracking/memory-dereferenceable.ll