Skip to content

Commit f62b93b

Browse files
[SCEV] Remove unused getExactExistingExpansion (NFC)
The last use was removed on Sep 4, 2018 in commit 2cbba56.
1 parent 1c5b848 commit f62b93b

File tree

2 files changed

+0
-13
lines changed

2 files changed

+0
-13
lines changed

llvm/include/llvm/Transforms/Utils/ScalarEvolutionExpander.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -365,10 +365,6 @@ class SCEVExpander : public SCEVVisitor<SCEVExpander, Value *> {
365365

366366
void setChainedPhi(PHINode *PN) { ChainedPhis.insert(PN); }
367367

368-
/// Try to find existing LLVM IR value for S available at the point At.
369-
Value *getExactExistingExpansion(const SCEV *S, const Instruction *At,
370-
Loop *L);
371-
372368
/// Try to find the ValueOffsetPair for S. The function is mainly used to
373369
/// check whether S can be expanded cheaply. If this returns a non-None
374370
/// value, we know we can codegen the `ValueOffsetPair` into a suitable

llvm/lib/Transforms/Utils/ScalarEvolutionExpander.cpp

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2152,15 +2152,6 @@ SCEVExpander::replaceCongruentIVs(Loop *L, const DominatorTree *DT,
21522152
return NumElim;
21532153
}
21542154

2155-
Value *SCEVExpander::getExactExistingExpansion(const SCEV *S,
2156-
const Instruction *At, Loop *L) {
2157-
Optional<ScalarEvolution::ValueOffsetPair> VO =
2158-
getRelatedExistingExpansion(S, At, L);
2159-
if (VO && VO.getValue().second == nullptr)
2160-
return VO.getValue().first;
2161-
return nullptr;
2162-
}
2163-
21642155
Optional<ScalarEvolution::ValueOffsetPair>
21652156
SCEVExpander::getRelatedExistingExpansion(const SCEV *S, const Instruction *At,
21662157
Loop *L) {

0 commit comments

Comments
 (0)