forked from OSchip/llvm-project
d4c3f20285
It is not enough to replace all uses of users of the function with undef, the users, we only drop instruction users, so they may stick around. Let's try different approach - first drop bodies for all the functions we will drop, which should take care of blockaddress issue the previous rewrite was dealing with; then, after dropping *all* such bodies, replace remaining uses with undef (thus all the uses are either outside of functions, or are in kept functions) and then finally drop functions. This seems to work, and passes the *existing* test coverage, but it is possible that a new issue will be discovered later :) A new (previously crashing) test added. |
||
---|---|---|
.. | ||
Inputs | ||
remove-all-of-multiple-args.ll | ||
remove-args-2.ll | ||
remove-args-from-declaration.ll | ||
remove-args-used-by-ret.ll | ||
remove-args.ll | ||
remove-attributes-from-intrinsic-like-functions.ll | ||
remove-attributes-from-intrinsics.ll | ||
remove-bbs-unwinded-to.ll | ||
remove-bbs.ll | ||
remove-call-site-attributes.ll | ||
remove-funcs.ll | ||
remove-function-arguments-of-funcs-used-in-blockaddress.ll | ||
remove-function-attributes.ll | ||
remove-function-bodies-used-in-globals.ll | ||
remove-function-bodies.ll | ||
remove-global-variable-attributes.ll | ||
remove-global-vars.ll | ||
remove-instructions.ll | ||
remove-invoked-functions.ll | ||
remove-metadata.ll | ||
remove-multiple-use-of-args-in-same-instruction.ll | ||
remove-multiple-use-of-global-vars-in-same-instruction.ll | ||
remove-operand-bundles.ll | ||
remove-single-arg.ll |