1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-19 02:52:53 +02:00
llvm-mirror/tools/llvm-reduce
Roman Lebedev 2f56715ea7 [Reduce] Rewrite function body delta pass again
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.
2020-08-08 23:48:44 +03:00
..
deltas [Reduce] Rewrite function body delta pass again 2020-08-08 23:48:44 +03:00
CMakeLists.txt [Reduce] Try turning function definitions into declarations first, NFCI-ish 2020-07-25 21:43:36 +03:00
DeltaManager.h [Reduce] Try turning function definitions into declarations first, NFCI-ish 2020-07-25 21:43:36 +03:00
llvm-reduce.cpp [NFC][Reduce] Group llvm-reduce options into a group, uncluttering --help 2020-07-22 10:00:31 +03:00
LLVMBuild.txt Added Delta IR Reduction Tool 2019-08-08 22:16:33 +00:00
TestRunner.cpp llvm-reduce: Remove some string copies 2019-09-16 23:54:57 +00:00
TestRunner.h llvm-reduce: Remove some string copies 2019-09-16 23:54:57 +00:00