[PATCH] D63672: Added Delta IR Reduction Tool
David Blaikie via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Aug 7 12:15:11 PDT 2019
dblaikie added a comment.
Also, I'm not able to run these locally - because I think I'm not using the system shell. Do you know anytihng about how I tell lit not to use its own shell, but to use the system one so it'll run these tests? (I can remove the REQUIRES line from the test and they run OK I think - but would be best to reproduce it more accurately) & have you been able to reproduce the failures various folks were reporting when this was previously committed?
================
Comment at: llvm/trunk/tools/llvm-reduce/deltas/Delta.h:156
+ static void run(TestRunner &Test) {
+ int TargetCount = P::getTargetCount(Test.getProgram());
+ std::vector<Chunk> Chunks = {{1, TargetCount}};
----------------
diegotf wrote:
> dblaikie wrote:
> > Would it be more appropriate for getTargetCount to return some handle to the actual entities, rather than only a count - that way extractChunksFromModule wouldn't need to rediscover them (& so it wouldn't have to make sure it computed the same number of targets, for instance - it'd be given the targets directly)
> The thing is, since `extractChunksFromModule` clones the original module each time, there's no way of comparing the targets from the original Module & the Cloned one (I know the compare function would work for Functions, but there's no alternative for other targets like Arguments or MDNodes)
Ah, I see. So this assumes that removing targets is independent of other targets - if you remove N targets, then there will be M-N targets remaining, etc.
Fair enough then.
Repository:
rL LLVM
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D63672/new/
https://reviews.llvm.org/D63672
More information about the llvm-commits
mailing list