Skip to content

Commit c528c94

Browse files
[InstCombine] Remove CreateNonTerminatorUnreachable (NFC)
The function was introduced without a use on Jun 3, 2020 in commit 2a6c871. Note that the identical function is defined in InstCombineInternal.h without static, which is in use.
1 parent 9a5f388 commit c528c94

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

llvm/include/llvm/Transforms/InstCombine/InstCombiner.h

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -361,14 +361,6 @@ class LLVM_LIBRARY_VISIBILITY InstCombiner {
361361
return ConstantVector::get(Out);
362362
}
363363

364-
/// Create and insert the idiom we use to indicate a block is unreachable
365-
/// without having to rewrite the CFG from within InstCombine.
366-
static void CreateNonTerminatorUnreachable(Instruction *InsertAt) {
367-
auto &Ctx = InsertAt->getContext();
368-
new StoreInst(ConstantInt::getTrue(Ctx),
369-
UndefValue::get(Type::getInt1PtrTy(Ctx)), InsertAt);
370-
}
371-
372364
void addToWorklist(Instruction *I) { Worklist.push(I); }
373365

374366
AssumptionCache &getAssumptionCache() const { return AC; }

0 commit comments

Comments
 (0)