mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-01 05:01:59 +01:00
In instcombine's debug output, avoid printing ADD for instructions that are
already on the worklist, and print Visited when an instruction is about to be visited. Net, on one input, this reduced the output size by at least 9x. llvm-svn: 83510
This commit is contained in:
parent
729cd181a2
commit
e36facef86
@ -90,9 +90,10 @@ namespace {
|
||||
/// Add - Add the specified instruction to the worklist if it isn't already
|
||||
/// in it.
|
||||
void Add(Instruction *I) {
|
||||
DEBUG(errs() << "IC: ADD: " << *I << '\n');
|
||||
if (WorklistMap.insert(std::make_pair(I, Worklist.size())).second)
|
||||
if (WorklistMap.insert(std::make_pair(I, Worklist.size())).second) {
|
||||
DEBUG(errs() << "IC: ADD: " << *I << '\n');
|
||||
Worklist.push_back(I);
|
||||
}
|
||||
}
|
||||
|
||||
void AddValue(Value *V) {
|
||||
@ -12853,7 +12854,8 @@ bool InstCombiner::DoOneIteration(Function &F, unsigned Iteration) {
|
||||
std::string OrigI;
|
||||
#endif
|
||||
DEBUG(raw_string_ostream SS(OrigI); I->print(SS); OrigI = SS.str(););
|
||||
|
||||
DEBUG(errs() << "IC: Visiting: " << OrigI << '\n');
|
||||
|
||||
if (Instruction *Result = visit(*I)) {
|
||||
++NumCombined;
|
||||
// Should we replace the old instruction with a new one?
|
||||
|
Loading…
x
Reference in New Issue
Block a user