mirror of
https://github.com/YosysHQ/yosys
synced 2025-04-23 09:05:32 +00:00
Pass some more args by reference in select.cc
Before this patch, the code passed around std::string objects by value. It's probably not a hot-spot, but it can't hurt to avoid the copying. Removing the copy and clean-up code means the resulting code is ~6.1kb smaller when compiled with GCC 9.3 and standard settings.
This commit is contained in:
parent
061d1f0c07
commit
d681c9df85
2 changed files with 8 additions and 8 deletions
|
@ -125,7 +125,7 @@ struct Backend : Pass
|
|||
};
|
||||
|
||||
// implemented in passes/cmds/select.cc
|
||||
extern void handle_extra_select_args(Pass *pass, std::vector<std::string> args, size_t argidx, size_t args_size, RTLIL::Design *design);
|
||||
extern void handle_extra_select_args(Pass *pass, const std::vector<std::string> &args, size_t argidx, size_t args_size, RTLIL::Design *design);
|
||||
extern RTLIL::Selection eval_select_args(const vector<string> &args, RTLIL::Design *design);
|
||||
extern void eval_select_op(vector<RTLIL::Selection> &work, const string &op, RTLIL::Design *design);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue