llvm-project/llvm/test/Transforms/BDCE
Nikita Popov 6658fce4fc [BDCE] Remove dead uses of arguments
In addition to finding dead uses of instructions, also find dead uses
of function arguments, and replace them with zero as well.

I'm changing the way the known bits are computed here to remove the
coupling between the transfer function and the algorithm. It previously
relied on the first op being visited first and computing known bits --
unless the first op is not an instruction, in which case they're computed
on the second op. I could have adjusted this to check for "instruction
or argument", but I think it's better to avoid the repeated calculation
with an explicit flag.

Differential Revision: https://reviews.llvm.org/D56247

llvm-svn: 350435
2019-01-04 21:21:43 +00:00
..
basic.ll
dbg-multipleuses.ll [DebugInfo] Add DILabel metadata and intrinsic llvm.dbg.label. 2018-05-09 02:40:45 +00:00
dce-pure.ll
dead-uses.ll [BDCE] Remove dead uses of arguments 2019-01-04 21:21:43 +00:00
dead-void-ro.ll
invalidate-assumptions.ll [BDCE] Remove instructions without demanded bits 2019-01-02 20:02:14 +00:00
order.ll
pr26587.ll [DebugInfo] Add DILabel metadata and intrinsic llvm.dbg.label. 2018-05-09 02:40:45 +00:00
vectors.ll [BDCE] Remove instructions without demanded bits 2019-01-02 20:02:14 +00:00