llvm-6502/test/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
..
ADCE
ArgumentPromotion
BlockPlacement
BranchFolding
CodeExtractor
CodeGenPrepare
CondProp
ConstantMerge
ConstProp Convert a few tests to FileCheck for PR5307. 2009-10-26 22:52:03 +00:00
DeadArgElim
DeadStoreElimination Treat lifetime begin/end markers as allocations/frees respectively for the 2009-10-28 07:05:35 +00:00
FunctionAttrs
GlobalDCE
GlobalOpt Extend getMallocArraySize() to determine the array size if the malloc argument is: 2009-10-28 20:18:55 +00:00
GVN Treat lifetime begin/end markers as allocations/frees respectively for the 2009-10-28 07:05:35 +00:00
IndVarSimplify Add a testcase for r83011. 2009-09-28 21:03:02 +00:00
Inline Fix a pretty serious misfeature of the inliner: if it inlines a function 2009-10-27 05:39:41 +00:00
InstCombine Convert a few tests to FileCheck for PR5307. 2009-10-26 22:52:03 +00:00
Internalize
IPConstantProp Constant propagating byval pointer is safe if function is readonly. 2009-09-24 18:33:42 +00:00
JumpThreading Make these tests more interesting by using 2009-10-24 23:23:04 +00:00
LCSSA Move the dominator verification code out of special code embedded within 2009-09-28 00:27:48 +00:00
LICM Convert a few tests to FileCheck for PR5307. 2009-10-26 22:52:03 +00:00
LoopDeletion Make LoopDeletion check the maximum backedge taken count, rather than the 2009-10-23 17:10:01 +00:00
LoopIndexSplit
LoopRotate Make these tests more interesting by using 2009-10-24 23:23:04 +00:00
LoopSimplify Make these tests more interesting by using 2009-10-24 23:23:04 +00:00
LoopStrengthReduce
LoopUnroll
LoopUnswitch Move the dominator verification code out of special code embedded within 2009-09-28 00:27:48 +00:00
LowerInvoke
LowerSetJmp
LowerSwitch
Mem2Reg
MemCpyOpt
MergeFunc
PruneEH
Reassociate
ScalarRepl
SCCP add a real testcase for PR4313 2009-10-20 21:04:26 +00:00
SimplifyCFG change simplifycfg to not duplicate 'unwind' instructions. Hopefully 2009-10-13 18:13:05 +00:00
SimplifyLibCalls Fix SimplifyLibCalls to transfer attributes from callees rather than 2009-09-26 18:10:13 +00:00
SRETPromotion
SSI
StripSymbols
TailCallElim
TailDup