summaryrefslogtreecommitdiffstats
path: root/lldb/packages/Python/lldbsuite/test/python_api/interpreter/main.c
diff options
context:
space:
mode:
authorNikita Popov <nikita.ppv@gmail.com>2019-01-04 21:21:43 +0000
committerNikita Popov <nikita.ppv@gmail.com>2019-01-04 21:21:43 +0000
commit6658fce4fcf3547c66e3273d07a12e266d4c4e01 (patch)
treee9efac58bb38104c967f9ec3bd927e8aae86516c /lldb/packages/Python/lldbsuite/test/python_api/interpreter/main.c
parent9f53bea5362e779368b7fe2fe96fb0db8fb9211d (diff)
downloadbcm5719-llvm-6658fce4fcf3547c66e3273d07a12e266d4c4e01.tar.gz
bcm5719-llvm-6658fce4fcf3547c66e3273d07a12e266d4c4e01.zip
[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
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/python_api/interpreter/main.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud