search for: numdeadinst

Displaying 3 results from an estimated 3 matches for "numdeadinst".

2020 Jun 17
2
InstCombine doesn't delete instructions with token
...aceAllUsesWith(UndefValue::get(Inst->getType())); - if (Inst->isEHPad()) { + if (Inst->isEHPad() || Inst->getType()->isTokenTy()) { EndInst = Inst; @@ -3022,7 +3022,8 @@ static bool prepareICWorklistFromFunction(Function &F, const DataLayout &DL, ++NumDeadInst; MadeIRChange = true; } Inst->eraseFromParent(); } } I believe the goal was to avoid RAUW the EHPad (as we don't delete the associated EHRet) and not skip all of the token instructions. At least you only test on EHPad in the associated unit test. In which cas...
2020 Jun 17
2
InstCombine doesn't delete instructions with token
...->getType())); > - if (Inst->isEHPad()) { > > + if (Inst->isEHPad() || Inst->getType()->isTokenTy()) { > EndInst = Inst; > @@ -3022,7 +3022,8 @@ static bool prepareICWorklistFromFunction(Function > &F, const DataLayout &DL, > ++NumDeadInst; > MadeIRChange = true; > } > Inst->eraseFromParent(); > } > } > > > > I believe the goal was to avoid RAUW the EHPad (as we don't delete the > associated EHRet) and not skip all of the token instructions. At least you > only te...
2020 Jun 17
2
InstCombine doesn't delete instructions with token
...->getType())); > - if (Inst->isEHPad()) { > > + if (Inst->isEHPad() || Inst->getType()->isTokenTy()) { > EndInst = Inst; > @@ -3022,7 +3022,8 @@ static bool prepareICWorklistFromFunction(Function > &F, const DataLayout &DL, > ++NumDeadInst; > MadeIRChange = true; > } > Inst->eraseFromParent(); > } > } > > > > I believe the goal was to avoid RAUW the EHPad (as we don't delete the > associated EHRet) and not skip all of the token instructions. At least you > only te...