aboutsummaryrefslogtreecommitdiffstats
path: root/lib/CodeGen/IfConversion.cpp
diff options
context:
space:
mode:
authorVictor Hernandez <vhernandez@apple.com>2009-10-28 20:18:55 +0000
committerVictor Hernandez <vhernandez@apple.com>2009-10-28 20:18:55 +0000
commit90f48e7c91a8faa875ba889ca66b137ffd46e34a (patch)
treeaa65e67f70dcc037d749a7a91ab809becdeafc87 /lib/CodeGen/IfConversion.cpp
parent5c00b4af61bb6abff2fb28ddd904808623a7db23 (diff)
downloadexternal_llvm-90f48e7c91a8faa875ba889ca66b137ffd46e34a.zip
external_llvm-90f48e7c91a8faa875ba889ca66b137ffd46e34a.tar.gz
external_llvm-90f48e7c91a8faa875ba889ca66b137ffd46e34a.tar.bz2
Extend getMallocArraySize() to determine the array size if the malloc argument is:
ArraySize * ElementSize ElementSize * ArraySize ArraySize << log2(ElementSize) ElementSize << log2(ArraySize) Refactor isArrayMallocHelper and delete isSafeToGetMallocArraySize, so that there is only 1 copy of the malloc array determining logic. Update users of getMallocArraySize() to not bother calling isArrayMalloc() as well. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@85421 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/IfConversion.cpp')
0 files changed, 0 insertions, 0 deletions