Re: [match-and-simplify] set simplify::capture_max to 0 if pattern contains no captures

2014-12-15 Thread Richard Biener
On Mon, 15 Dec 2014, Prathamesh Kulkarni wrote: > Caused segfault for pattern containing no captures at: > info.safe_grow_cleared(capture_max + 1); in capture_info::capture_info > > artificial test-case: > (define_predicates integer_zerop) > (simplify > (bit_not integer_zerop) > { build_zero_

[match-and-simplify] set simplify::capture_max to 0 if pattern contains no captures

2014-12-14 Thread Prathamesh Kulkarni
Caused segfault for pattern containing no captures at: info.safe_grow_cleared(capture_max + 1); in capture_info::capture_info artificial test-case: (define_predicates integer_zerop) (simplify (bit_not integer_zerop) { build_zero_cst (type); }) * genmatch.c (simplify::simplify): Set simplify