forked from OSchip/llvm-project
[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:
parent
4835441d02
commit
e42bfec9b6
|
@ -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;
|
||||
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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; }
|
||||
|
||||
|
|
Loading…
Reference in New Issue