aboutsummaryrefslogtreecommitdiffstats
path: root/passes
diff options
context:
space:
mode:
authorEddie Hung <eddie@fpgeh.com>2019-09-13 16:33:18 -0700
committerEddie Hung <eddie@fpgeh.com>2019-09-13 16:33:18 -0700
commit14d72c39c385bba3005085815a0d66989a437eff (patch)
tree243f876a7c098c24267ac77653824fbe187d5cfd /passes
parent3a49aa6b4a707f558ec378a25d28c3e0d914cfac (diff)
downloadyosys-14d72c39c385bba3005085815a0d66989a437eff.tar.gz
yosys-14d72c39c385bba3005085815a0d66989a437eff.tar.bz2
yosys-14d72c39c385bba3005085815a0d66989a437eff.zip
Revert "Make one check $shift(x)? only; change testcase to be 8b"
This reverts commit e2c2d784c8217e4bcf29fb6b156b6a8285036b80.
Diffstat (limited to 'passes')
-rw-r--r--passes/pmgen/peepopt_shiftmul.pmg5
1 files changed, 2 insertions, 3 deletions
diff --git a/passes/pmgen/peepopt_shiftmul.pmg b/passes/pmgen/peepopt_shiftmul.pmg
index e1da52182..d4748ae19 100644
--- a/passes/pmgen/peepopt_shiftmul.pmg
+++ b/passes/pmgen/peepopt_shiftmul.pmg
@@ -50,9 +50,8 @@ code
if (GetSize(const_factor_cnst) > 20)
reject;
- if (shift->type.in($shift, $shiftx))
- if (GetSize(port(shift, \Y)) > const_factor)
- reject;
+ if (GetSize(port(shift, \Y)) > const_factor)
+ reject;
int factor_bits = ceil_log2(const_factor);
SigSpec mul_din = port(mul, const_factor_port == \A ? \B : \A);