Sha256: 1e2865af781d138c3b92fff859405572457ada4d96f396948d8767068e73641d

Contents?: true

Size: 923 Bytes

Versions: 10

Compression:

Stored size: 923 Bytes

Contents

// Copyright 2013 the V8 project authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef V8_CRANKSHAFT_HYDROGEN_REDUNDANT_PHI_H_
#define V8_CRANKSHAFT_HYDROGEN_REDUNDANT_PHI_H_

#include "src/crankshaft/hydrogen.h"

namespace v8 {
namespace internal {


// Replace all phis consisting of a single non-loop operand plus any number of
// loop operands by that single non-loop operand.
class HRedundantPhiEliminationPhase : public HPhase {
 public:
  explicit HRedundantPhiEliminationPhase(HGraph* graph)
      : HPhase("H_Redundant phi elimination", graph) { }

  void Run();
  void ProcessBlock(HBasicBlock* block);

 private:
  void ProcessPhis(const ZoneList<HPhi*>* phis);

  DISALLOW_COPY_AND_ASSIGN(HRedundantPhiEliminationPhase);
};


}  // namespace internal
}  // namespace v8

#endif  // V8_CRANKSHAFT_HYDROGEN_REDUNDANT_PHI_H_

Version data entries

10 entries across 9 versions & 2 rubygems

Version Path
libv8-6.0.286.54.1 vendor/v8/src/crankshaft/hydrogen-redundant-phi.h
libv8-6.0.286.54.0 vendor/v8/src/crankshaft/hydrogen-redundant-phi.h
libv8-6.0.286.54.0beta2 vendor/v8/src/crankshaft/hydrogen-redundant-phi.h
libv8-6.0.286.54.0beta1 vendor/v8/src/crankshaft/hydrogen-redundant-phi.h
libv8-6.0.286.44.0beta1 vendor/v8/src/crankshaft/hydrogen-redundant-phi.h
node-compiler-0.9.1 vendor/node/deps/v8/src/crankshaft/hydrogen-redundant-phi.h
node-compiler-0.9.0 vendor/node-v7.2.1/deps/v8/src/crankshaft/hydrogen-redundant-phi.h
node-compiler-0.8.0 vendor/node-v7.2.0/deps/v8/src/crankshaft/hydrogen-redundant-phi.h
node-compiler-0.7.0 vendor/node-v7.1.0/deps/v8/src/crankshaft/hydrogen-redundant-phi.h
node-compiler-0.7.0 vendor/node-v6.9.1/deps/v8/src/crankshaft/hydrogen-redundant-phi.h