#pragma once
#include <torch/csrc/jit/ir/ir.h>
namespace torch {
namespace jit {
// Peephole Optimizes alias sensitive peepholes
// Currently this is invoked as part of PeepholeOptimize
// return true if graph is modified
// Optimizes on TensorType if shape_peepholes is true
TORCH_API bool PeepholeOptimizeAliasSensitive(
const std::shared_ptr<Graph>& graph,
bool shape_peepholes);
} // namespace jit
} // namespace torch