Skip to content

Commit

Permalink
Enable remove-dead-values MLIR pass for stablehlo pipeline (#926)
Browse files Browse the repository at this point in the history
* Enable remove-dead-values pass by default for stablehlo pipeline.
  • Loading branch information
uazizTT authored Nov 5, 2024
1 parent a38cc9d commit 3883db6
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions include/ttmlir/Dialect/TTIR/Pipelines/TTIRPipelines.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,10 @@ namespace mlir::tt::ttir {
//
struct StableHLOToTTIRPipelineOptions
: public PassPipelineOptions<StableHLOToTTIRPipelineOptions> {
// Option to enable --remove-dead-values optimization pass.
Option<bool> removeDeadValuesEnabled{
*this, "enable-remove-dead-values",
llvm::cl::desc("Enable --remove-dead-values optimization pass."),
// Currently this pass fails if module has a name, so keeping the
// optimization OFF by default until that issue is fixed on llvm side.
llvm::cl::init(false)};
llvm::cl::init(true)};
Option<bool> arithDialectConversionsEnabled{
*this, "enable-arith-to-stablehlo",
llvm::cl::desc("Enable Arith to StableHLO conversion pass."),
Expand Down

0 comments on commit 3883db6

Please sign in to comment.