aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Bitcode/Reader/MetadataLoader.cpp
diff options
context:
space:
mode:
authorArthur Eubanks <aeubanks@google.com>2021-11-11 18:45:59 -0800
committerArthur Eubanks <aeubanks@google.com>2021-11-11 18:46:09 -0800
commit6f288bd7727e6906f6e85208d710b70acf598514 (patch)
tree9b5a9704a90a1047d4d51c977a2d958cd8347ab7 /llvm/lib/Bitcode/Reader/MetadataLoader.cpp
parentbe0b47d5304ea4190770a4504b329df7fac2ba92 (diff)
downloadllvm-6f288bd7727e6906f6e85208d710b70acf598514.zip
llvm-6f288bd7727e6906f6e85208d710b70acf598514.tar.gz
llvm-6f288bd7727e6906f6e85208d710b70acf598514.tar.bz2
[llvm-reduce] Count chunks by running a preliminary reduction
Having a separate counting method runs the risk of a mismatch between the actual reduction method and the counting method. Instead, create an Oracle that always returns true for shouldKeep(), run the reduction, and count how many times shouldKeep() was called. The module should not be modified if shouldKeep() always returns true. Reviewed By: Meinersbur Differential Revision: https://reviews.llvm.org/D113537
Diffstat (limited to 'llvm/lib/Bitcode/Reader/MetadataLoader.cpp')
0 files changed, 0 insertions, 0 deletions