Commit c0524d5
committed
fix: prevent canonicalize looping for extremely long time
A hanging bug can manifest with very large inputs to minimize at
canonicalize pass. This is because if the maxNumRewrites is not set,
it defaults to kNoLimit, which could be an arbitrary large number.
This optional command line argument makes it possible to set the max
number of rewrites for large input files to minimize.
Signed-off-by: Tianrui Wei <[email protected]>1 parent acbf18e commit c0524d5
File tree
2 files changed
+11
-0
lines changed- lib/Reduce
- tools/circt-reduce
2 files changed
+11
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
14 | 15 | | |
15 | 16 | | |
16 | 17 | | |
17 | 18 | | |
| 19 | + | |
| 20 | + | |
18 | 21 | | |
19 | 22 | | |
20 | 23 | | |
| |||
101 | 104 | | |
102 | 105 | | |
103 | 106 | | |
| 107 | + | |
| 108 | + | |
104 | 109 | | |
105 | 110 | | |
106 | 111 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
104 | 104 | | |
105 | 105 | | |
106 | 106 | | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
107 | 113 | | |
108 | 114 | | |
109 | 115 | | |
| |||
0 commit comments