diff options
Diffstat (limited to 'deps/v8/src/compiler/graph-reducer.h')
-rw-r--r-- | deps/v8/src/compiler/graph-reducer.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/deps/v8/src/compiler/graph-reducer.h b/deps/v8/src/compiler/graph-reducer.h index bbcc67b0748..3c15214d932 100644 --- a/deps/v8/src/compiler/graph-reducer.h +++ b/deps/v8/src/compiler/graph-reducer.h @@ -35,6 +35,10 @@ class Reduction final { Node* replacement() const { return replacement_; } bool Changed() const { return replacement() != nullptr; } + Reduction FollowedBy(Reduction next) const { + if (next.Changed()) return next; + return *this; + } private: Node* replacement_; |