Re: Use tree_vector_builder::new_binary_operation for folding

2017-12-07 Thread Richard Biener
On Wed, Dec 6, 2017 at 4:24 PM, Richard Sandiford wrote: > This patch makes fold-const.c operate directly on the VECTOR_CST > encoding when folding an operation that has two VECTOR_CST inputs. > > Tested on aarch64-linux-gnu, x86_64-linux-gnu and powerpc64le-linux-gnu. > Also spot-checked on sparc

Use tree_vector_builder::new_binary_operation for folding

2017-12-06 Thread Richard Sandiford
This patch makes fold-const.c operate directly on the VECTOR_CST encoding when folding an operation that has two VECTOR_CST inputs. Tested on aarch64-linux-gnu, x86_64-linux-gnu and powerpc64le-linux-gnu. Also spot-checked on sparc64-linux-gnu. OK to install? Thanks, Richard 2017-12-06 Richar