search for: endinst

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

2020 Jun 17
2
InstCombine doesn't delete instructions with token
...hich define token instructions. llvm-svn: 252343 --- a/llvm/lib/Transforms/InstCombine/InstructionCombining.cpp +++ b/llvm/lib/Transforms/InstCombine/InstructionCombining.cpp @@ -3012,7 +3012,7 @@ static bool prepareICWorklistFromFunction(Function &F, const DataLayout &DL, while (EndInst != BB->begin()) { // Delete the next to last instruction. Instruction *Inst = &*--EndInst->getIterator(); - if (!Inst->use_empty()) + if (!Inst->use_empty() && !Inst->getType()->isTokenTy()) Inst->replaceAllUsesWith(UndefValue::get(I...
2020 Jun 17
2
InstCombine doesn't delete instructions with token
...gt; llvm-svn: 252343 > > --- a/llvm/lib/Transforms/InstCombine/InstructionCombining.cpp > +++ b/llvm/lib/Transforms/InstCombine/InstructionCombining.cpp > @@ -3012,7 +3012,7 @@ static bool prepareICWorklistFromFunction(Function > &F, const DataLayout &DL, > while (EndInst != BB->begin()) { > // Delete the next to last instruction. > Instruction *Inst = &*--EndInst->getIterator(); > - if (!Inst->use_empty()) > + if (!Inst->use_empty() && !Inst->getType()->isTokenTy()) > Inst->replaceAllU...
2020 Jun 17
2
InstCombine doesn't delete instructions with token
...gt; llvm-svn: 252343 > > --- a/llvm/lib/Transforms/InstCombine/InstructionCombining.cpp > +++ b/llvm/lib/Transforms/InstCombine/InstructionCombining.cpp > @@ -3012,7 +3012,7 @@ static bool prepareICWorklistFromFunction(Function > &F, const DataLayout &DL, > while (EndInst != BB->begin()) { > // Delete the next to last instruction. > Instruction *Inst = &*--EndInst->getIterator(); > - if (!Inst->use_empty()) > + if (!Inst->use_empty() && !Inst->getType()->isTokenTy()) > Inst->replaceAllU...