diff options
Diffstat (limited to 'passes/opt/opt.cc')
-rw-r--r-- | passes/opt/opt.cc | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/passes/opt/opt.cc b/passes/opt/opt.cc index 53c27e0f5..8d259f34d 100644 --- a/passes/opt/opt.cc +++ b/passes/opt/opt.cc @@ -31,7 +31,7 @@ struct OptPass : public Pass { { // |---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---| log("\n"); - log(" opt [-mux_undef] [-mux_bool] [selection]\n"); + log(" opt [-mux_undef] [-mux_bool] [-undriven] [selection]\n"); log("\n"); log("This pass calls all the other opt_* passes in a useful order. This performs\n"); log("a series of trivial optimizations and cleanups. This pass executes the other\n"); @@ -46,7 +46,7 @@ struct OptPass : public Pass { log(" opt_share\n"); log(" opt_rmdff\n"); log(" opt_clean\n"); - log(" opt_const [-mux_undef] [-mux_bool]\n"); + log(" opt_const [-mux_undef] [-mux_bool] [-undriven]\n"); log(" while [changed design]\n"); log("\n"); } @@ -67,6 +67,10 @@ struct OptPass : public Pass { opt_const_args += " -mux_bool"; continue; } + if (args[argidx] == "-undriven") { + opt_const_args += " -undriven"; + continue; + } break; } extra_args(args, argidx, design); |