[mlir][dataflow] Remove the unused AnalysisState::defaultInitialize().

Depends On D131660

`defaultInitialize()` was introduced for the "nudging" behavior, which has been deleted.

Reviewed By: Mogball, rriddle

Differential Revision: https://reviews.llvm.org/D131746
This commit is contained in:
Zhixun Tan 2022-08-15 13:24:01 -04:00 committed by Jeff Niu
parent 4835441d02
commit e42bfec9b6
5 changed files with 0 additions and 21 deletions

View File

@ -41,9 +41,6 @@ public:
/// The state is initialized by default.
bool isUninitialized() const override { return false; }
/// The state is always initialized.
ChangeResult defaultInitialize() override { return ChangeResult::NoChange; }
/// Set the state of the program point to live.
ChangeResult setToLive();
@ -101,9 +98,6 @@ public:
/// The state is initialized by default.
bool isUninitialized() const override { return false; }
/// The state is always initialized.
ChangeResult defaultInitialize() override { return ChangeResult::NoChange; }
/// Print the known predecessors.
void print(raw_ostream &os) const override;

View File

@ -93,11 +93,6 @@ public:
/// Returns true if the value of this lattice hasn't yet been initialized.
bool isUninitialized() const override { return !optimisticValue.has_value(); }
/// Force the initialization of the element by setting it to its pessimistic
/// fixpoint.
ChangeResult defaultInitialize() override {
return markPessimisticFixpoint();
}
/// Join the information contained in the 'rhs' lattice into this
/// lattice. Returns if the state of the current lattice changed.

View File

@ -291,10 +291,6 @@ public:
/// Returns true if the analysis state is uninitialized.
virtual bool isUninitialized() const = 0;
/// Force an uninitialized analysis state to initialize itself with a default
/// value.
virtual ChangeResult defaultInitialize() = 0;
/// Print the contents of the analysis state.
virtual void print(raw_ostream &os) const = 0;

View File

@ -61,9 +61,6 @@ public:
/// The lattice is always initialized.
bool isUninitialized() const override { return false; }
/// Initialize the lattice. Does nothing.
ChangeResult defaultInitialize() override { return ChangeResult::NoChange; }
/// Mark the lattice as having reached its pessimistic fixpoint. That is, the
/// last modifications of all memory resources are unknown.
ChangeResult reset() override {

View File

@ -20,9 +20,6 @@ public:
using AnalysisState::AnalysisState;
/// Default-initialize the state to zero.
ChangeResult defaultInitialize() override { return join(0); }
/// Returns true if the state is uninitialized.
bool isUninitialized() const override { return !state; }