-
- Downloads
fold-const.h (get_array_ctor_element_at_index): Adjust.
2019-07-12 Richard Biener <rguenther@suse.de> * fold-const.h (get_array_ctor_element_at_index): Adjust. * fold-const.c (get_array_ctor_element_at_index): Add ctor_idx output parameter informing the caller where in the constructor the element was (not) found. Add early exit for when the ctor is sorted. * gimple-fold.c (fold_array_ctor_reference): Support constant folding across multiple array elements. * gcc.dg/tree-ssa/vector-7.c: New testcase. From-SVN: r273435
Showing
- gcc/ChangeLog 10 additions, 0 deletionsgcc/ChangeLog
- gcc/fold-const.c 28 additions, 8 deletionsgcc/fold-const.c
- gcc/fold-const.h 2 additions, 1 deletiongcc/fold-const.h
- gcc/gimple-fold.c 84 additions, 7 deletionsgcc/gimple-fold.c
- gcc/testsuite/ChangeLog 4 additions, 0 deletionsgcc/testsuite/ChangeLog
- gcc/testsuite/gcc.dg/tree-ssa/vector-7.c 39 additions, 0 deletionsgcc/testsuite/gcc.dg/tree-ssa/vector-7.c
Loading
Please register or sign in to comment