llvm-6502/lib/Transforms
Victor Hernandez 90f48e7c91 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
2009-10-28 20:18:55 +00:00
..
Hello Use raw_ostream::write_escaped instead of EscapeString. 2009-10-17 20:43:19 +00:00
Instrumentation Remove includes of Support/Compiler.h that are no longer needed after the 2009-10-25 06:57:41 +00:00
IPO Extend getMallocArraySize() to determine the array size if the malloc argument is: 2009-10-28 20:18:55 +00:00
Scalar No newline at end of file. 2009-10-28 15:04:53 +00:00
Utils Factor out redundancy from clone() implementations. 2009-10-27 22:16:29 +00:00
Makefile The attached patches attempt to fix cross builds. For example, if you 2009-08-18 00:40:33 +00:00