llvm-6502/test/Transforms/DeadArgElim
Derek Schuff c06e5cf2e3 Fix DeleteDeadVarargs not to crash on functions referenced by BlockAddresses
This pass was assuming that if hasAddressTaken() returns false for a
function, the function's only uses are call sites.  That's not true
because there can be references by BlockAddresses too.

Fix the pass to handle this case.  Fix
BlockAddress::replaceUsesOfWithOnConstant() to allow a function's type
to be changed by RAUW'ing the function with a bitcast of the recreated
function.

Patch by Mark Seaborn.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@183933 91177308-0d34-0410-b5e6-96231b3b80d8
2013-06-13 19:51:17 +00:00
..
2006-06-27-struct-ret.ll
2007-02-07-FuncRename.ll
2007-10-18-VarargsReturn.ll Fix the remaining TCL-style quotes found in the testsuite. This is 2012-07-02 19:09:46 +00:00
2007-12-20-ParamAttrs.ll Use references to attribute groups on the call/invoke instructions. 2013-02-22 09:09:42 +00:00
2008-01-16-VarargsParamAttrs.ll
2008-06-23-DeadAfterLive.ll
2009-03-17-MRE-Invoke.ll
2010-04-30-DbgInfo.ll Use references to attribute groups on the call/invoke instructions. 2013-02-22 09:09:42 +00:00
2013-05-17-VarargsAndBlockAddress.ll Fix DeleteDeadVarargs not to crash on functions referenced by BlockAddresses 2013-06-13 19:51:17 +00:00
basictest.ll
canon.ll
dbginfo.ll Revert "Revert "PR14606: debug info imported_module support"" 2013-04-22 06:12:31 +00:00
dead_vaargs.ll
deadexternal.ll Tests: rewrite 'opt ... %s' to 'opt ... < %s' so that opt does not emit a ModuleID 2012-12-30 01:28:40 +00:00
deadretval2.ll
deadretval.ll
keepalive.ll Modify the LLVM assembly output so that it uses references to represent function attributes. 2013-02-20 07:21:42 +00:00
lit.local.cfg
multdeadretval.ll
variadic_safety.ll Make DeadArgumentElimination more conservative on variadic functions 2013-06-09 02:17:27 +00:00