mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-05-20 20:38:48 +00:00
Remove ScalarEvolution::hasSCEV, which isn't being used, and which
breaks encapsulation. Also remove a dead prototype for setSCEV. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@75272 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
3ae2da6abd
commit
1afdc5f356
@ -489,14 +489,6 @@ namespace llvm {
|
|||||||
const SCEV *getUMinFromMismatchedTypes(const SCEV *LHS,
|
const SCEV *getUMinFromMismatchedTypes(const SCEV *LHS,
|
||||||
const SCEV *RHS);
|
const SCEV *RHS);
|
||||||
|
|
||||||
/// hasSCEV - Return true if the SCEV for this value has already been
|
|
||||||
/// computed.
|
|
||||||
bool hasSCEV(Value *V) const;
|
|
||||||
|
|
||||||
/// setSCEV - Insert the specified SCEV into the map of current SCEVs for
|
|
||||||
/// the specified value.
|
|
||||||
void setSCEV(Value *V, const SCEV *H);
|
|
||||||
|
|
||||||
/// getSCEVAtScope - Return a SCEV expression handle for the specified value
|
/// getSCEVAtScope - Return a SCEV expression handle for the specified value
|
||||||
/// at the specified scope in the program. The L value specifies a loop
|
/// at the specified scope in the program. The L value specifies a loop
|
||||||
/// nest to evaluate the expression at, where null is the top-level or a
|
/// nest to evaluate the expression at, where null is the top-level or a
|
||||||
|
@ -2120,12 +2120,6 @@ const SCEV *ScalarEvolution::getCouldNotCompute() {
|
|||||||
return &CouldNotCompute;
|
return &CouldNotCompute;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// hasSCEV - Return true if the SCEV for this value has already been
|
|
||||||
/// computed.
|
|
||||||
bool ScalarEvolution::hasSCEV(Value *V) const {
|
|
||||||
return Scalars.count(V);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// getSCEV - Return an existing SCEV if it exists, otherwise analyze the
|
/// getSCEV - Return an existing SCEV if it exists, otherwise analyze the
|
||||||
/// expression and create a new one.
|
/// expression and create a new one.
|
||||||
const SCEV *ScalarEvolution::getSCEV(Value *V) {
|
const SCEV *ScalarEvolution::getSCEV(Value *V) {
|
||||||
@ -4966,8 +4960,8 @@ void ScalarEvolution::print(raw_ostream &OS, const Module* ) const {
|
|||||||
// out SCEV values of all instructions that are interesting. Doing
|
// out SCEV values of all instructions that are interesting. Doing
|
||||||
// this potentially causes it to create new SCEV objects though,
|
// this potentially causes it to create new SCEV objects though,
|
||||||
// which technically conflicts with the const qualifier. This isn't
|
// which technically conflicts with the const qualifier. This isn't
|
||||||
// observable from outside the class though (the hasSCEV function
|
// observable from outside the class though, so casting away the
|
||||||
// notwithstanding), so casting away the const isn't dangerous.
|
// const isn't dangerous.
|
||||||
ScalarEvolution &SE = *const_cast<ScalarEvolution*>(this);
|
ScalarEvolution &SE = *const_cast<ScalarEvolution*>(this);
|
||||||
|
|
||||||
OS << "Classifying expressions for: " << F->getName() << "\n";
|
OS << "Classifying expressions for: " << F->getName() << "\n";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user