projects
/
yosys.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5490f94
)
Remove set but unused variable
author
Miodrag Milanovic
<mmicko@gmail.com>
Fri, 27 May 2022 10:37:03 +0000
(12:37 +0200)
committer
Miodrag Milanovic
<mmicko@gmail.com>
Fri, 27 May 2022 10:37:03 +0000
(12:37 +0200)
kernel/consteval.h
patch
|
blob
|
history
diff --git
a/kernel/consteval.h
b/kernel/consteval.h
index 642eb42b25d0f7d0692865f9a3e49e40a8f230ac..4c0c26049f4515242b01081031ff4fd322ff25a6 100644
(file)
--- a/
kernel/consteval.h
+++ b/
kernel/consteval.h
@@
-146,7
+146,6
@@
struct ConstEval
if (cell->type.in(ID($mux), ID($pmux), ID($_MUX_), ID($_NMUX_)))
{
std::vector<RTLIL::SigSpec> y_candidates;
- int count_maybe_set_s_bits = 0;
int count_set_s_bits = 0;
if (!eval(sig_s, undef, cell))
@@
-160,9
+159,6
@@
struct ConstEval
if (s_bit == RTLIL::State::Sx || s_bit == RTLIL::State::S1)
y_candidates.push_back(b_slice);
- if (s_bit == RTLIL::State::S1 || s_bit == RTLIL::State::Sx)
- count_maybe_set_s_bits++;
-
if (s_bit == RTLIL::State::S1)
count_set_s_bits++;
}