[llvm] c528c94 - [InstCombine] Remove CreateNonTerminatorUnreachable (NFC)
Kazu Hirata via llvm-commits
llvm-commits at lists.llvm.org
Tue Aug 24 06:52:20 PDT 2021
Author: Kazu Hirata
Date: 2021-08-24T06:52:15-07:00
New Revision: c528c9490b0c78ec8f700a3670b9ecf9f4702095
URL: https://github.com/llvm/llvm-project/commit/c528c9490b0c78ec8f700a3670b9ecf9f4702095
DIFF: https://github.com/llvm/llvm-project/commit/c528c9490b0c78ec8f700a3670b9ecf9f4702095.diff
LOG: [InstCombine] Remove CreateNonTerminatorUnreachable (NFC)
The function was introduced without a use on Jun 3, 2020 in commit
2a6c871596ce8bdd23501a96fd22f0f16d3cfcad. Note that the identical
function is defined in InstCombineInternal.h without static, which is
in use.
Added:
Modified:
llvm/include/llvm/Transforms/InstCombine/InstCombiner.h
Removed:
################################################################################
diff --git a/llvm/include/llvm/Transforms/InstCombine/InstCombiner.h b/llvm/include/llvm/Transforms/InstCombine/InstCombiner.h
index f763612a95a6..a793804d0c9f 100644
--- a/llvm/include/llvm/Transforms/InstCombine/InstCombiner.h
+++ b/llvm/include/llvm/Transforms/InstCombine/InstCombiner.h
@@ -361,14 +361,6 @@ class LLVM_LIBRARY_VISIBILITY InstCombiner {
return ConstantVector::get(Out);
}
- /// Create and insert the idiom we use to indicate a block is unreachable
- /// without having to rewrite the CFG from within InstCombine.
- static void CreateNonTerminatorUnreachable(Instruction *InsertAt) {
- auto &Ctx = InsertAt->getContext();
- new StoreInst(ConstantInt::getTrue(Ctx),
- UndefValue::get(Type::getInt1PtrTy(Ctx)), InsertAt);
- }
-
void addToWorklist(Instruction *I) { Worklist.push(I); }
AssumptionCache &getAssumptionCache() const { return AC; }
More information about the llvm-commits
mailing list