aboutsummaryrefslogtreecommitdiff
path: root/llvm/tools/llvm-readobj/llvm-readobj.cpp
diff options
context:
space:
mode:
authorFlorian Hahn <flo@fhahn.com>2020-08-28 08:40:40 +0100
committerFlorian Hahn <flo@fhahn.com>2020-08-28 09:08:35 +0100
commitba7c79cb3a69dd6ec2256afa9913214e63aea0d7 (patch)
tree8e41bff7090220a2efde0ac7e2ab236815d27585 /llvm/tools/llvm-readobj/llvm-readobj.cpp
parentdb1ec04963cce70f2593e58cecac55f2e6accf52 (diff)
downloadllvm-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