Merge pull request 'fix expression substitution' (#46) from subst_expr_rd into master
This commit was merged in pull request #46.
This commit is contained in:
@@ -1235,8 +1235,9 @@ bool isArgReaches(int decl_instr, SAPFOR::BasicBlock* decl_bb,
|
||||
if (RDs_for_arg.size() == 1)
|
||||
{
|
||||
const int rd = *RDs_for_arg.begin();
|
||||
if (rd >= decl_bb->getInstructions().front()->getNumber() && rd < decl_instr)
|
||||
return true;
|
||||
if (rd >= decl_bb->getInstructions().front()->getNumber() &&
|
||||
rd <= decl_bb->getInstructions().back()->getNumber())
|
||||
return rd < decl_instr;
|
||||
}
|
||||
|
||||
auto arg_in_from_decl_it = decl_bb->getRD_In().find(arg);
|
||||
|
||||
Reference in New Issue
Block a user