prune-trace: fix pruner listing change
Commit 89817cf13f did not completely
remove the manual pruner instantiation code.
Change-Id: I00dab9e3f4f3e2acf1d0f285237cc03a968aabfb
This commit is contained in:
@ -81,30 +81,10 @@ int main(int argc, char *argv[]) {
|
|||||||
std::cerr << "Available pruning methods: " << pruners << std::endl;
|
std::cerr << "Available pruning methods: " << pruners << std::endl;
|
||||||
exit(-1);
|
exit(-1);
|
||||||
}
|
}
|
||||||
|
registry.getPrimeAlias(pruner, pruner_name);
|
||||||
|
LOG << "Using " << pruner_name << endl;
|
||||||
|
|
||||||
if (cmd[PRUNER]) {
|
if (!(pruner->commandline_init())) {
|
||||||
std::string imp(cmd[PRUNER].first()->arg);
|
|
||||||
if (imp == "BasicPruner" || imp == "basic") {
|
|
||||||
LOG << "Using BasicPruner" << endl;
|
|
||||||
pruner = new BasicPruner();
|
|
||||||
} else if (imp == "BasicPrunerLeft" || imp == "basic-left") {
|
|
||||||
LOG << "Using BasicPruner (use left border, instr1)" << endl;
|
|
||||||
pruner = new BasicPruner(true);
|
|
||||||
} else if (imp == "FESamplingPruner" || imp == "sampling") {
|
|
||||||
LOG << "Using FESamplingPruner" << endl;
|
|
||||||
pruner = new FESamplingPruner;
|
|
||||||
|
|
||||||
} else {
|
|
||||||
LOG << "Unknown pruning method: " << imp << endl;
|
|
||||||
exit(-1);
|
|
||||||
}
|
|
||||||
|
|
||||||
} else {
|
|
||||||
LOG << "Using BasicPruner" << endl;
|
|
||||||
pruner = new BasicPruner();
|
|
||||||
}
|
|
||||||
|
|
||||||
if (pruner && !(pruner->commandline_init())) {
|
|
||||||
std::cerr << "Pruner's commandline initialization failed" << std::endl;
|
std::cerr << "Pruner's commandline initialization failed" << std::endl;
|
||||||
exit(-1);
|
exit(-1);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user