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 Convert all tests using TCL-style quoting to use shell-style quoting. 2012-07-02 12:47:22 +00:00
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 Fix grammar in test. 2011-05-22 01:16:00 +00:00
2009-03-17-MRE-Invoke.ll Update some tests to the new EH scheme. 2011-09-01 00:58:03 +00:00
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 Convert all tests using TCL-style quoting to use shell-style quoting. 2012-07-02 12:47:22 +00:00
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 Replace all instances of dg.exp file with lit.local.cfg, since all tests are run with LIT now and now Dejagnu. dg.exp is no longer needed. 2012-02-16 06:28:33 +00:00
multdeadretval.ll
variadic_safety.ll Make DeadArgumentElimination more conservative on variadic functions 2013-06-09 02:17:27 +00:00