Skip to content

Commit

Permalink
peepopt: Describe shiftadd rule in help message
Browse files Browse the repository at this point in the history
  • Loading branch information
phsauter committed Oct 16, 2023
1 parent f4c93fd commit fb9dcbc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions passes/pmgen/peepopt.cc
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@ struct PeepoptPass : public Pass {
log(" Analogously, replace A<<(B*C) with appropriate selection of\n");
log(" output bits from A<<(B<<K). (left variant)\n");
log("\n");
log(" * shiftadd - Replace A>>(B+D) with (A'>>D)>>(B) where D is constant and\n");
log(" A' is derived from A by padding or cutting inaccessible bits.\n");
log("\n");
}
void execute(std::vector<std::string> args, RTLIL::Design *design) override
{
Expand Down

0 comments on commit fb9dcbc

Please sign in to comment.