llvm-capstone/llvm/test/Reduce
Roman Lebedev f804bd586e
[llvm-reduce] extractGVsFromModule(): don't crash when deleting instr twice
As it can be seen in newly-added (previously-crashing) test-case,
there can be a situation where multiple GV's are used in instr,
and we would schedule the same instruction to be deleted several times,
crashing when trying to delete it the second time.

We could either store WeakVH (done here), or use something set-like.
I think using WeakVH is prevalent in these cases elsewhere.
2020-07-05 01:01:46 +03:00
..
Inputs
remove-args.ll
remove-bbs.ll
remove-funcs.ll
remove-global-vars.ll
remove-instructions.ll
remove-metadata.ll
remove-multiple-use-of-args-in-same-instruction.ll
remove-multiple-use-of-global-vars-in-same-instruction.ll