1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-25 04:02:41 +01:00
llvm-mirror/test/Transforms/BDCE
Nikita Popov 61d02a0896 [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
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
vectors.ll [BDCE] Remove instructions without demanded bits 2019-01-02 20:02:14 +00:00