diff options
author | Florian Hahn <flo@fhahn.com> | 2020-08-28 08:40:40 +0100 |
---|---|---|
committer | Florian Hahn <flo@fhahn.com> | 2020-08-28 09:08:35 +0100 |
commit | ba7c79cb3a69dd6ec2256afa9913214e63aea0d7 (patch) | |
tree | 8e41bff7090220a2efde0ac7e2ab236815d27585 /llvm/tools/llvm-readobj/llvm-readobj.cpp | |
parent | db1ec04963cce70f2593e58cecac55f2e6accf52 (diff) | |
download | llvm-ba7c79cb3a69dd6ec2256afa9913214e63aea0d7.zip llvm-ba7c79cb3a69dd6ec2256afa9913214e63aea0d7.tar.gz llvm-ba7c79cb3a69dd6ec2256afa9913214e63aea0d7.tar.bz2 |
[llvm-reduce] Skip chunks that lead to broken modules.
Some reduction passes may create invalid IR. I am not aware of any use
case where we would like to proceed reducing invalid IR. Various utils
used here, including CloneModule, assume the module to clone is valid
and crash otherwise.
Ideally, no reduction pass would create invalid IR, but some currently
do. ReduceInstructions can be fixed relatively easily (D86210), but
others are harder. For example, ReduceBasicBlocks may remove result in
invalid PHI nodes.
For now, skip the chunks. If we get to the point where all reduction
passes result in valid IR, we may want to turn this into an assertion.
Reviewed By: lebedev.ri
Differential Revision: https://reviews.llvm.org/D86212
Diffstat (limited to 'llvm/tools/llvm-readobj/llvm-readobj.cpp')
0 files changed, 0 insertions, 0 deletions