[Reduce] Rewrite runDeltaPass() workloop: do reduce a single and/or last target
authorRoman Lebedev <lebedev.ri@gmail.com>
Thu, 23 Jul 2020 07:51:09 +0000 (10:51 +0300)
committerRoman Lebedev <lebedev.ri@gmail.com>
Thu, 23 Jul 2020 07:51:46 +0000 (10:51 +0300)
commit469cb724eea198d5ac0608e7828d0f92735dbaa1
treea7fcb3c73e20b966c175e36e4f708ee2109839fd
parent3a75466f41be12a8cdcff7ff786d55a319e6c2df
[Reduce] Rewrite runDeltaPass() workloop: do reduce a single and/or last target

Summary:
If there was a single target to begin with, because a single target
can only occupy a single chunk, we couldn't increase granularity.
and would immediately give up.

Likewise, if we had multiple targets, if by the end we'd end up with
a single target, we wouldn't finish reducing it, it would always
end up being "interesting"

Reviewers: dblaikie, nickdesaulniers, diegotf

Reviewed By: dblaikie

Subscribers: llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D84318
llvm/test/Reduce/remove-all-of-multiple-args.ll
llvm/test/Reduce/remove-single-arg.ll
llvm/tools/llvm-reduce/deltas/Delta.cpp