Author: Kazu Hirata Date: 2021-01-08T18:39:57-08:00 New Revision: f62b93b9a250cf5449c05b8ca7da4c112ddc0458
URL: https://github.com/llvm/llvm-project/commit/f62b93b9a250cf5449c05b8ca7da4c112ddc0458 DIFF: https://github.com/llvm/llvm-project/commit/f62b93b9a250cf5449c05b8ca7da4c112ddc0458.diff LOG: [SCEV] Remove unused getExactExistingExpansion (NFC) The last use was removed on Sep 4, 2018 in commit 2cbba5633753552a984572c8b9a5997e5c96496d. Added: Modified: llvm/include/llvm/Transforms/Utils/ScalarEvolutionExpander.h llvm/lib/Transforms/Utils/ScalarEvolutionExpander.cpp Removed: ################################################################################ diff --git a/llvm/include/llvm/Transforms/Utils/ScalarEvolutionExpander.h b/llvm/include/llvm/Transforms/Utils/ScalarEvolutionExpander.h index 67a406d2492b..68eccdfd011d 100644 --- a/llvm/include/llvm/Transforms/Utils/ScalarEvolutionExpander.h +++ b/llvm/include/llvm/Transforms/Utils/ScalarEvolutionExpander.h @@ -365,10 +365,6 @@ class SCEVExpander : public SCEVVisitor<SCEVExpander, Value *> { void setChainedPhi(PHINode *PN) { ChainedPhis.insert(PN); } - /// Try to find existing LLVM IR value for S available at the point At. - Value *getExactExistingExpansion(const SCEV *S, const Instruction *At, - Loop *L); - /// Try to find the ValueOffsetPair for S. The function is mainly used to /// check whether S can be expanded cheaply. If this returns a non-None /// value, we know we can codegen the `ValueOffsetPair` into a suitable diff --git a/llvm/lib/Transforms/Utils/ScalarEvolutionExpander.cpp b/llvm/lib/Transforms/Utils/ScalarEvolutionExpander.cpp index 6c112b586f1a..f58e2d927840 100644 --- a/llvm/lib/Transforms/Utils/ScalarEvolutionExpander.cpp +++ b/llvm/lib/Transforms/Utils/ScalarEvolutionExpander.cpp @@ -2152,15 +2152,6 @@ SCEVExpander::replaceCongruentIVs(Loop *L, const DominatorTree *DT, return NumElim; } -Value *SCEVExpander::getExactExistingExpansion(const SCEV *S, - const Instruction *At, Loop *L) { - Optional<ScalarEvolution::ValueOffsetPair> VO = - getRelatedExistingExpansion(S, At, L); - if (VO && VO.getValue().second == nullptr) - return VO.getValue().first; - return nullptr; -} - Optional<ScalarEvolution::ValueOffsetPair> SCEVExpander::getRelatedExistingExpansion(const SCEV *S, const Instruction *At, Loop *L) { _______________________________________________ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits