Skip to content

Commit

Permalink
Improve replaced instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
adam weishaupt committed Oct 18, 2024
1 parent 7615d89 commit 01abf83
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions LLVMParser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -972,13 +972,15 @@ bool LLVMParser::findReplacements(llvm::DominatorTree *DT,
}

// Check if we already replaced this instruction
/*
if (constainsReplacedInstructions(ReplacedInstructions, Cand)) {
#ifdef DEBUG_SIMPLIFICATION
outs() << "[*] Skipping already replaced instruction\n";
#endif
Cand.isValid = false;
continue;
}
*/

// Try to simplify the whole AST
int BitWidth = Cand.AST.front().I->getType()->getIntegerBitWidth();
Expand Down

0 comments on commit 01abf83

Please sign in to comment.