[llvm-commits] [PATCH] get all MallocInst transforms/analysis to operate on malloc calls instead (patch #1)

Victor Hernandez vhernandez at apple.com
Tue Sep 15 13:38:04 PDT 2009


This is the first of 4 patches that will result in malloc calls having  
the same transforms/analysis applied to them as are currently done to  
MallocInst.
This first patch includes changes to the malloc call creation code  
(AllocTy is now the element type of the malloc, not the resulting  
pointer type) and a bug fix to getMallocArraySize (the case where the  
array size is a product of 2 constants was broken).
Also included are changes isSafeToSpeculativelyExecute() and Verifier  
to treat malloc calls the same as MallocInst.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: MallocCalls.diff
Type: application/octet-stream
Size: 12938 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20090915/cd11305f/attachment.obj>
-------------- next part --------------


Victor



More information about the llvm-commits mailing list