mirror of
https://github.com/RPCS3/llvm.git
synced 2025-01-19 08:24:12 +00:00
Convert BasicVN to be an ImmutablePass
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3924 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
6ffa0a7f7c
commit
c3a388143b
@ -38,18 +38,7 @@ namespace {
|
||||
/// lexically identical expressions. This does not require any ahead of time
|
||||
/// analysis, so it is a very fast default implementation.
|
||||
///
|
||||
struct BasicVN : public FunctionPass, public ValueNumbering {
|
||||
|
||||
/// Pass Implementation stuff. This isn't much of a pass.
|
||||
///
|
||||
bool runOnFunction(Function &) { return false; }
|
||||
|
||||
/// getAnalysisUsage - Does not modify anything.
|
||||
///
|
||||
virtual void getAnalysisUsage(AnalysisUsage &AU) const {
|
||||
AU.setPreservesAll();
|
||||
}
|
||||
|
||||
struct BasicVN : public ImmutablePass, public ValueNumbering {
|
||||
/// getEqualNumberNodes - Return nodes with the same value number as the
|
||||
/// specified Value. This fills in the argument vector with any equal
|
||||
/// values.
|
||||
|
Loading…
x
Reference in New Issue
Block a user