diff options
author | Clifford Wolf <clifford@clifford.at> | 2019-08-15 18:34:36 +0200 |
---|---|---|
committer | Clifford Wolf <clifford@clifford.at> | 2019-08-15 18:35:56 +0200 |
commit | 73bf4539298fdc9f11302582f5e5aff57214cd28 (patch) | |
tree | 8613733959da3f596112684cd8ae4bc9c93217d1 /passes/pmgen/peepopt_shiftmul.pmg | |
parent | 704686774e28b9b602874264df2c0f96841be05e (diff) | |
download | yosys-73bf4539298fdc9f11302582f5e5aff57214cd28.tar.gz yosys-73bf4539298fdc9f11302582f5e5aff57214cd28.tar.bz2 yosys-73bf4539298fdc9f11302582f5e5aff57214cd28.zip |
Improvements in pmgen for recursive patterns
Signed-off-by: Clifford Wolf <clifford@clifford.at>
Diffstat (limited to 'passes/pmgen/peepopt_shiftmul.pmg')
-rw-r--r-- | passes/pmgen/peepopt_shiftmul.pmg | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/passes/pmgen/peepopt_shiftmul.pmg b/passes/pmgen/peepopt_shiftmul.pmg index 6adab4e5f..d766d9e4a 100644 --- a/passes/pmgen/peepopt_shiftmul.pmg +++ b/passes/pmgen/peepopt_shiftmul.pmg @@ -34,6 +34,7 @@ match mul endmatch code +{ IdString const_factor_port = port(mul, \A).is_fully_const() ? \A : \B; IdString const_factor_signed = const_factor_port == \A ? \A_SIGNED : \B_SIGNED; Const const_factor_cnst = port(mul, const_factor_port).as_const(); @@ -91,4 +92,5 @@ code blacklist(shift); reject; +} endcode |