Update computeArraySize() to use ComputeMultiple() to determine the array size associ...
authorVictor Hernandez <vhernandez@apple.com>
Tue, 10 Nov 2009 08:32:25 +0000 (08:32 +0000)
committerVictor Hernandez <vhernandez@apple.com>
Tue, 10 Nov 2009 08:32:25 +0000 (08:32 +0000)
commit8e345a1c418608c49abb7c51a090bbb36f1273bc
tree224be4ee8cbfb0f87c72ee7964af0fa7b06aeea0
parent2b6705f5e7c7624bd7fe486298c400f1afc15f6c
Update computeArraySize() to use ComputeMultiple() to determine the array size associated with a malloc; also extend PerformHeapAllocSRoA() to check if the optimized malloc's arg had its highest bit set, so that it is safe for ComputeMultiple() to look through sext instructions while determining the optimized malloc's array size

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@86676 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Analysis/MemoryBuiltins.h
lib/Analysis/MemoryBuiltins.cpp
lib/Transforms/IPO/GlobalOpt.cpp
test/Analysis/PointerTracking/sizes.ll