mirror of git://gcc.gnu.org/git/gcc.git
re PR tree-optimization/77880 (out of memory building recent LLVM on ppc64le with -O3)
PR tree-optimization/77880 * expr.c (by_pieces_ninsns): Use unsigned HOST_WIDE_INT where necessary. From-SVN: r240862
This commit is contained in:
parent
d4bd46463c
commit
1edfde32a8
|
|
@ -1,3 +1,9 @@
|
||||||
|
2016-10-07 Bernd Schmidt <bschmidt@redhat.com>
|
||||||
|
|
||||||
|
PR tree-optimization/77880
|
||||||
|
* expr.c (by_pieces_ninsns): Use unsigned HOST_WIDE_INT where
|
||||||
|
necessary.
|
||||||
|
|
||||||
2016-10-07 Marek Polacek <polacek@redhat.com>
|
2016-10-07 Marek Polacek <polacek@redhat.com>
|
||||||
|
|
||||||
PR c++/77803
|
PR c++/77803
|
||||||
|
|
|
||||||
|
|
@ -785,7 +785,7 @@ by_pieces_ninsns (unsigned HOST_WIDE_INT l, unsigned int align,
|
||||||
case COMPARE_BY_PIECES:
|
case COMPARE_BY_PIECES:
|
||||||
int batch = targetm.compare_by_pieces_branch_ratio (mode);
|
int batch = targetm.compare_by_pieces_branch_ratio (mode);
|
||||||
int batch_ops = 4 * batch - 1;
|
int batch_ops = 4 * batch - 1;
|
||||||
int full = n_pieces / batch;
|
unsigned HOST_WIDE_INT full = n_pieces / batch;
|
||||||
n_insns += full * batch_ops;
|
n_insns += full * batch_ops;
|
||||||
if (n_pieces % batch != 0)
|
if (n_pieces % batch != 0)
|
||||||
n_insns++;
|
n_insns++;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue