Re: [C++ PATCH] Improve cp_fold on vector CONSTRUCTORs (PR c++/85077)

2018-03-27 Thread Jason Merrill
OK. On Tue, Mar 27, 2018 at 5:18 AM, Jakub Jelinek wrote: > Hi! > > The following testcase regressed for 8+, because we delayed folding in > SAVE_EXPRs and end up passing a CONSTRUCTOR with V4SFmode and 4x 0.0 > constants in it rather than a VECTOR_CST to the middle-end folder, which > uses real_

[C++ PATCH] Improve cp_fold on vector CONSTRUCTORs (PR c++/85077)

2018-03-27 Thread Jakub Jelinek
Hi! The following testcase regressed for 8+, because we delayed folding in SAVE_EXPRs and end up passing a CONSTRUCTOR with V4SFmode and 4x 0.0 constants in it rather than a VECTOR_CST to the middle-end folder, which uses real_zerop and thus doesn't recognize the CONSTRUCTOR in VEC_COND_EXPR as z