diff options
author | Victor Hernandez <vhernandez@apple.com> | 2009-10-28 20:18:55 +0000 |
---|---|---|
committer | Victor Hernandez <vhernandez@apple.com> | 2009-10-28 20:18:55 +0000 |
commit | 90f48e7c91a8faa875ba889ca66b137ffd46e34a (patch) | |
tree | aa65e67f70dcc037d749a7a91ab809becdeafc87 /lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp | |
parent | 5c00b4af61bb6abff2fb28ddd904808623a7db23 (diff) |
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/SelectionDAG/SelectionDAGBuild.cpp')
0 files changed, 0 insertions, 0 deletions