From 01abf838c09e7435faa973a8cef080736847b6d2 Mon Sep 17 00:00:00 2001 From: adam weishaupt Date: Fri, 18 Oct 2024 15:30:48 +0200 Subject: [PATCH] Improve replaced instructions --- LLVMParser.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/LLVMParser.cpp b/LLVMParser.cpp index a2fd834..9aa10ea 100644 --- a/LLVMParser.cpp +++ b/LLVMParser.cpp @@ -972,6 +972,7 @@ 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"; @@ -979,6 +980,7 @@ bool LLVMParser::findReplacements(llvm::DominatorTree *DT, Cand.isValid = false; continue; } + */ // Try to simplify the whole AST int BitWidth = Cand.AST.front().I->getType()->getIntegerBitWidth();