[SCEV] Make eraseValueFromMap() private (NFC)

The public API for this functionality is forgetValue(). There was
only one call from LoopVectorize, which was directly next to a
forgetValue() call and as such redundant.
This commit is contained in:
Nikita Popov 2021-11-06 17:12:18 +01:00
parent 23566f18c6
commit f8627877a9
2 changed files with 3 additions and 4 deletions

View File

@ -523,9 +523,6 @@ public:
/// scAddRecExpr. The result will be cached in HasRecMap.
bool containsAddRecurrence(const SCEV *S);
/// Erase Value from ValueExprMap and ExprValueMap.
void eraseValueFromMap(Value *V);
/// Is operation \p BinOp between \p LHS and \p RHS provably does not have
/// a signed/unsigned overflow (\p Signed)?
bool willNotOverflow(Instruction::BinaryOps BinOp, bool Signed,
@ -1904,6 +1901,9 @@ private:
/// Return an existing SCEV for V if there is one, otherwise return nullptr.
const SCEV *getExistingSCEV(Value *V);
/// Erase Value from ValueExprMap and ExprValueMap.
void eraseValueFromMap(Value *V);
/// Return false iff given SCEV contains a SCEVUnknown with NULL value-
/// pointer.
bool checkValidity(const SCEV *S) const;

View File

@ -2034,7 +2034,6 @@ public:
if (MemCheckExp.isInsertedInstruction(&I))
continue;
SE.forgetValue(&I);
SE.eraseValueFromMap(&I);
I.eraseFromParent();
}
}