public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/109724] [10 regression] Huge memory usage when building qtwebengine's SkOpAngle.cpp since r10-11201-g051f78a5c1d699 Date: Thu, 04 May 2023 07:39:31 +0000 [thread overview] Message-ID: <bug-109724-4-P5Co79bf51@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-109724-4@http.gcc.gnu.org/bugzilla/> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109724 --- Comment #9 from Richard Biener <rguenth at gcc dot gnu.org> --- Reduced testcase. I've reduced with diff --git a/gcc/tree-ssa-sccvn.c b/gcc/tree-ssa-sccvn.c index 666d7061aa8..31879fb761b 100644 --- a/gcc/tree-ssa-sccvn.c +++ b/gcc/tree-ssa-sccvn.c @@ -1558,6 +1558,7 @@ valueize_refs_1 (vec<vn_reference_op_s> *orig, bool *value ized_anything, { vn_reference_op_t vro; unsigned int i; + auto_bitmap visited; *valueized_anything = false; @@ -1609,8 +1610,12 @@ valueize_refs_1 (vec<vn_reference_op_s> *orig, bool *valueized_anything, && vro->opcode == SSA_NAME && (*orig)[i - 1].opcode == MEM_REF) { + tree name = vro->op0; if (vn_reference_maybe_forwprop_address (orig, &i)) - *valueized_anything = true; + { + *valueized_anything = true; + gcc_assert (bitmap_set_bit (visited, SSA_NAME_VERSION (name))); + } } /* If it transforms a non-constant ARRAY_REF into a constant one, adjust the constant offset. */ -- double &SkTMax(double &a, double &b) { return a ?: b; } struct SkDPoint { double fX; }; struct SkDCubic { SkDPoint &operator[](int n) { return fPts[n]; } SkDPoint fPts[4]; }; struct SkDCurve { SkDCubic fCubic; SkDPoint &operator[](int n) { return fCubic[n]; } }; struct SkDCurveSweep { SkDCurve fCurve; }; int endsIntersect_rPts; double endsIntersect_maxX; struct SkOpAngle { void endsIntersect(); SkDCurveSweep fPart; } endsIntersect_rh; void SkOpAngle::endsIntersect() { for (int index = 0;; ++index) { SkDCurve &curve = index ? endsIntersect_rh.fPart.fCurve : fPart.fCurve; for (int idx2 = 0; endsIntersect_rPts; ++idx2) { SkDPoint &__trans_tmp_1 = curve[idx2]; endsIntersect_maxX = SkTMax(endsIntersect_maxX, __trans_tmp_1.fX); } } }
next prev parent reply other threads:[~2023-05-04 7:39 UTC|newest] Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top 2023-05-04 1:53 [Bug c++/109724] New: [10 regression] Huge memory usage when building qtwebengine's SkOpAngle.cpp sjames at gcc dot gnu.org 2023-05-04 1:55 ` [Bug c++/109724] [10 regression] Huge memory usage when building qtwebengine's SkOpAngle.cpp since r10-11201-g051f78a5c1d699 sjames at gcc dot gnu.org 2023-05-04 2:07 ` sjames at gcc dot gnu.org 2023-05-04 3:11 ` sjames at gcc dot gnu.org 2023-05-04 6:20 ` rguenth at gcc dot gnu.org 2023-05-04 6:44 ` sjames at gcc dot gnu.org 2023-05-04 7:00 ` rguenth at gcc dot gnu.org 2023-05-04 7:14 ` rguenth at gcc dot gnu.org 2023-05-04 7:34 ` rguenth at gcc dot gnu.org 2023-05-04 7:39 ` rguenth at gcc dot gnu.org [this message] 2023-05-04 7:45 ` cvs-commit at gcc dot gnu.org 2023-05-04 7:46 ` cvs-commit at gcc dot gnu.org 2023-05-04 7:46 ` cvs-commit at gcc dot gnu.org 2023-05-04 7:47 ` cvs-commit at gcc dot gnu.org 2023-05-04 7:47 ` cvs-commit at gcc dot gnu.org 2023-05-04 7:48 ` rguenth at gcc dot gnu.org
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=bug-109724-4-P5Co79bf51@http.gcc.gnu.org/bugzilla/ \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).