From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm1-x335.google.com (mail-wm1-x335.google.com [IPv6:2a00:1450:4864:20::335]) by sourceware.org (Postfix) with ESMTPS id 993C038582A2 for ; Mon, 4 Jul 2022 19:30:42 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 993C038582A2 Received: by mail-wm1-x335.google.com with SMTP id o16-20020a05600c379000b003a02eaea815so7069899wmr.0 for ; Mon, 04 Jul 2022 12:30:42 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:date:to:cc:message-id:subject:mime-version :list-id; bh=s/UU4ydxwlLdb1Cs7G50PtrZAF8XVsVrG1w8WmTeYBE=; b=7GT6OmA5VYkUAakHuDxmwtaEExYCU/VORy2M9LVti6e8U/pdxABL48w7pgxBQQI9NS F11xa2VwC5dZID8fSUhdMI+LdroXWCxMxNn+rUsNfPLzQi7vpJFoR+VuDIiV2S57m55p U1GFsdd/Tk9gn9v+flPybfTA9cnsmWLe1sZclRoZcryc1RxntsgmkeeRuxyktITYnxOR ghbBoEy/aVUef470vAm0Ah+HT93nCY0+neMseLkZowCW3q1bfaC2MjO/l8btP82eDI0f JqF91hsH+DqoRzO5SlUz8P8ExnX+OlUQmh2DadQ0RrUeyPMieuVjHl+r0qPs/71j7d9t D2bw== X-Gm-Message-State: AJIora8DcEA7UrcUsJ/NU6HMNIT1QSq4tqyIhLb8fLCyR+taxxrYeUSc XUUe3dEOsw5XM/GvtqxvPo5IOw== X-Google-Smtp-Source: AGRyM1uN+32WdwnhSTmdwGmex5KRcb0ifk2zc1144NaHF7klw/TTxfnP0VcUEKIZIu67GQSh1Exlvw== X-Received: by 2002:a05:600c:210d:b0:3a0:2eea:bf4b with SMTP id u13-20020a05600c210d00b003a02eeabf4bmr33374661wml.28.1656963041122; Mon, 04 Jul 2022 12:30:41 -0700 (PDT) Received: from jenkins.jenkins (ci.linaro.org. [88.99.136.175]) by smtp.gmail.com with ESMTPSA id l14-20020a05600c4f0e00b003a199ed4f44sm8759192wmq.27.2022.07.04.12.30.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Jul 2022 12:30:40 -0700 (PDT) From: ci_notify@linaro.org X-Google-Original-From: linaro-infrastructure-errors@lists.linaro.org Date: Mon, 4 Jul 2022 19:30:39 +0000 (UTC) To: Richard Biener Cc: gcc-regression@gcc.gnu.org Message-ID: <641289980.7146.1656963040592@jenkins.jenkins> Subject: [TCWG CI] Regression caused by gcc: Keep virtual SSA up-to-date in vectorizer MIME-Version: 1.0 X-Jenkins-Job: TCWG Bisect tcwg_gcc_bootstrap/master-arm-bootstrap_O3 X-Jenkins-Result: SUCCESS X-Spam-Status: No, score=-13.5 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, KAM_LOTSOFHASH, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE, WEIRD_PORT autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: gcc-regression@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-regression mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Jul 2022 19:30:44 -0000 [TCWG CI] Regression caused by gcc: Keep virtual SSA up-to-date in vectorizer: commit 10b502fb78351a4073b6682c026a92c82d3da6c5 Author: Richard Biener Keep virtual SSA up-to-date in vectorizer Results regressed to # reset_artifacts: -10 # true: 0 # build_abe binutils: 1 # First few build errors in logs: # 00:06:04 make[3]: [Makefile:1787: armv8l-unknown-linux-gnueabihf/bits/largefile-config.h] Error 1 (ignored) # 00:08:32 /home/tcwg-buildslave/workspace/tcwg_gnu_13/abe/snapshots/gcc.git~master/libdecnumber/decNumber.c:4831:20: internal compiler error: in vect_do_peeling, at tree-vect-loop-manip.cc:2690 # 00:08:32 make[3]: *** [Makefile:195: decNumber.o] Error 1 # 00:08:32 make[2]: *** [Makefile:11459: all-stage2-libdecnumber] Error 2 # 00:08:50 make[1]: *** [Makefile:25739: stage2-bubble] Error 2 # 00:08:50 make: *** [Makefile:1072: all] Error 2 from # reset_artifacts: -10 # true: 0 # build_abe binutils: 1 # build_abe bootstrap_O3: 2 THIS IS THE END OF INTERESTING STUFF. BELOW ARE LINKS TO BUILDS, REPRODUCTION INSTRUCTIONS, AND THE RAW COMMIT. This commit has regressed these CI configurations: - tcwg_gcc_bootstrap/master-arm-bootstrap_O3 First_bad build: https://ci.linaro.org/job/tcwg_gcc_bootstrap-bisect-master-arm-bootstrap_O3/9/artifact/artifacts/build-10b502fb78351a4073b6682c026a92c82d3da6c5/ Last_good build: https://ci.linaro.org/job/tcwg_gcc_bootstrap-bisect-master-arm-bootstrap_O3/9/artifact/artifacts/build-88b9d090aa1686ba52ce6016aeed66464fb0d4bb/ Baseline build: https://ci.linaro.org/job/tcwg_gcc_bootstrap-bisect-master-arm-bootstrap_O3/9/artifact/artifacts/build-baseline/ Even more details: https://ci.linaro.org/job/tcwg_gcc_bootstrap-bisect-master-arm-bootstrap_O3/9/artifact/artifacts/ Reproduce builds: mkdir investigate-gcc-10b502fb78351a4073b6682c026a92c82d3da6c5 cd investigate-gcc-10b502fb78351a4073b6682c026a92c82d3da6c5 # Fetch scripts git clone https://git.linaro.org/toolchain/jenkins-scripts # Fetch manifests and test.sh script mkdir -p artifacts/manifests curl -o artifacts/manifests/build-baseline.sh https://ci.linaro.org/job/tcwg_gcc_bootstrap-bisect-master-arm-bootstrap_O3/9/artifact/artifacts/manifests/build-baseline.sh --fail curl -o artifacts/manifests/build-parameters.sh https://ci.linaro.org/job/tcwg_gcc_bootstrap-bisect-master-arm-bootstrap_O3/9/artifact/artifacts/manifests/build-parameters.sh --fail curl -o artifacts/test.sh https://ci.linaro.org/job/tcwg_gcc_bootstrap-bisect-master-arm-bootstrap_O3/9/artifact/artifacts/test.sh --fail chmod +x artifacts/test.sh # Reproduce the baseline build (build all pre-requisites) ./jenkins-scripts/tcwg_gnu-build.sh @@ artifacts/manifests/build-baseline.sh # Save baseline build state (which is then restored in artifacts/test.sh) mkdir -p ./bisect rsync -a --del --delete-excluded --exclude /bisect/ --exclude /artifacts/ --exclude /gcc/ ./ ./bisect/baseline/ cd gcc # Reproduce first_bad build git checkout --detach 10b502fb78351a4073b6682c026a92c82d3da6c5 ../artifacts/test.sh # Reproduce last_good build git checkout --detach 88b9d090aa1686ba52ce6016aeed66464fb0d4bb ../artifacts/test.sh cd .. Full commit (up to 1000 lines): commit 10b502fb78351a4073b6682c026a92c82d3da6c5 Author: Richard Biener Date: Mon Jul 4 12:36:05 2022 +0200 Keep virtual SSA up-to-date in vectorizer The following removes a FIXME where we fail(ed) to keep virtual SSA up-to-date, patching up the remaining two cases I managed to trigger. I've left an assert so that we pick up cases arising for the cases I wasn't able to trigger. 2022-07-04 Richard Biener * tree-vect-loop-manip.cc (vect_do_peeling): Assert that no SSA update is needed instead of updating virtual SSA form. * tree-vect-stmts.cc (vectorizable_load): For hoisted invariant load use the loop entry virtual use. For emulated gather loads use the virtual use of the original stmt like vect_finish_stmt_generation would do. --- gcc/tree-vect-loop-manip.cc | 11 ++++------- gcc/tree-vect-stmts.cc | 15 ++++++++++++--- 2 files changed, 16 insertions(+), 10 deletions(-) diff --git a/gcc/tree-vect-loop-manip.cc b/gcc/tree-vect-loop-manip.cc index 47c4fe8de86..7b7af944dba 100644 --- a/gcc/tree-vect-loop-manip.cc +++ b/gcc/tree-vect-loop-manip.cc @@ -2683,14 +2683,11 @@ vect_do_peeling (loop_vec_info loop_vinfo, tree niters, tree nitersm1, class loop *first_loop = loop; bool irred_flag = loop_preheader_edge (loop)->flags & EDGE_IRREDUCIBLE_LOOP; - /* We might have a queued need to update virtual SSA form. As we - delete the update SSA machinery below after doing a regular + /* Historically we might have a queued need to update virtual SSA form. + As we delete the update SSA machinery below after doing a regular incremental SSA update during loop copying make sure we don't - lose that fact. - ??? Needing to update virtual SSA form by renaming is unfortunate - but not all of the vectorizer code inserting new loads / stores - properly assigns virtual operands to those statements. */ - update_ssa (TODO_update_ssa_only_virtuals); + lose that fact. */ + gcc_assert (!need_ssa_update_p (cfun)); create_lcssa_for_virtual_phi (loop); diff --git a/gcc/tree-vect-stmts.cc b/gcc/tree-vect-stmts.cc index 346d8ce2804..d6a6fe3fb38 100644 --- a/gcc/tree-vect-stmts.cc +++ b/gcc/tree-vect-stmts.cc @@ -9024,9 +9024,16 @@ vectorizable_load (vec_info *vinfo, "hoisting out of the vectorized loop: %G", stmt); scalar_dest = copy_ssa_name (scalar_dest); tree rhs = unshare_expr (gimple_assign_rhs1 (stmt)); - gsi_insert_on_edge_immediate - (loop_preheader_edge (loop), - gimple_build_assign (scalar_dest, rhs)); + edge pe = loop_preheader_edge (loop); + gphi *vphi = get_virtual_phi (loop->header); + tree vuse; + if (vphi) + vuse = PHI_ARG_DEF_FROM_EDGE (vphi, pe); + else + vuse = gimple_vuse (gsi_stmt (*gsi)); + gimple *new_stmt = gimple_build_assign (scalar_dest, rhs); + gimple_set_vuse (new_stmt, vuse); + gsi_insert_on_edge_immediate (pe, new_stmt); } /* These copies are all equivalent, but currently the representation requires a separate STMT_VINFO_VEC_STMT for each one. */ @@ -9769,6 +9776,8 @@ vectorizable_load (vec_info *vinfo, tree ref = build2 (MEM_REF, ltype, ptr, build_int_cst (ref_type, 0)); new_stmt = gimple_build_assign (elt, ref); + gimple_set_vuse (new_stmt, + gimple_vuse (gsi_stmt (*gsi))); gimple_seq_add_stmt (&stmts, new_stmt); CONSTRUCTOR_APPEND_ELT (ctor_elts, NULL_TREE, elt); } >>From ci_notify@linaro.org Mon Jul 4 19:35:43 2022 Return-Path: X-Original-To: gcc-regression@gcc.gnu.org Delivered-To: gcc-regression@gcc.gnu.org Received: from mail-wm1-x334.google.com (mail-wm1-x334.google.com [IPv6:2a00:1450:4864:20::334]) by sourceware.org (Postfix) with ESMTPS id 3F0CC38582A2 for ; Mon, 4 Jul 2022 19:35:41 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 3F0CC38582A2 Received: by mail-wm1-x334.google.com with SMTP id o16-20020a05600c379000b003a02eaea815so7073554wmr.0 for ; Mon, 04 Jul 2022 12:35:41 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:date:to:cc:message-id:subject:mime-version :list-id; bh=JVQFKWR2kqLbYkJ6n6m1zMbyz3W9lXWvFL3e890eRd4=; b=DEGK7YJJVt7+Ik3kgqLjoUI9ACEUPA1z19AfNXAN7yRLkNh1rgGsjQYyVKnnHs1iug Sc2IHfoWwk79n5gLbeDnRsdfoM9mHoiIlmcz5iIKW5ZZOqUqvwImMWTMZxpGKHXZR3ye y/1rCKnkkULIrhfuvmRSmVeywIleU7Y8FDn3bD/82cC7BrKy5DNu4xWWBlJOBw5r7o1z A4ylmB6v8JwuARvGM+SgBR4/vmTYjLGzpwyWSanPYHfiKzkpR+mZ7KxltjzHenL4o4hC NJmnubjOR740R+4FSrEkQ8it6LiFqYpQCWL24w0gpbI8T+EBRt14iNGmV5yVrzReRTEe UzBA== X-Gm-Message-State: AJIora+OZePgMc3wFZDVOmztl+C3z9MJ5jZQgSTX5F7pVxYXVUIqrk5Q 3eeE4fr+c/zxE77WXB1TXvR/9Q== X-Google-Smtp-Source: AGRyM1sJZV5H9NyuVTJOhBpq6iNJzV9IpaTRAV0LRpgs3sALt89fwRwp9Cy6gl9piCf7NmFTBh3lJA== X-Received: by 2002:a05:600c:4e49:b0:3a0:4c17:c67f with SMTP id e9-20020a05600c4e4900b003a04c17c67fmr35442680wmq.1.1656963340086; Mon, 04 Jul 2022 12:35:40 -0700 (PDT) Received: from jenkins.jenkins (ci.linaro.org. [88.99.136.175]) by smtp.gmail.com with ESMTPSA id d10-20020adff2ca000000b0021a38089e99sm30895304wrp.57.2022.07.04.12.35.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Jul 2022 12:35:39 -0700 (PDT) From: ci_notify@linaro.org X-Google-Original-From: linaro-infrastructure-errors@lists.linaro.org Date: Mon, 4 Jul 2022 19:35:38 +0000 (UTC) To: Richard Biener Cc: gcc-regression@gcc.gnu.org Message-ID: <1594539669.7148.1656963339610@jenkins.jenkins> Subject: [TCWG CI] Regression caused by gcc: Keep virtual SSA up-to-date in vectorizer MIME-Version: 1.0 X-Jenkins-Job: TCWG Bisect tcwg_gnu_cross_build/master-aarch64 X-Jenkins-Result: SUCCESS X-Spam-Status: No, score=-13.5 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, KAM_LOTSOFHASH, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE, WEIRD_PORT autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: gcc-regression@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-regression mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Jul 2022 19:35:43 -0000 [TCWG CI] Regression caused by gcc: Keep virtual SSA up-to-date in vectorizer: commit 10b502fb78351a4073b6682c026a92c82d3da6c5 Author: Richard Biener Keep virtual SSA up-to-date in vectorizer Results regressed to # reset_artifacts: -10 # true: 0 # build_abe binutils: 1 # build_abe stage1: 2 # build_abe linux: 3 # build_abe glibc: 4 # First few build errors in logs: # 00:08:02 make[2]: [Makefile:1786: aarch64-linux-gnu/bits/largefile-config.h] Error 1 (ignored) # 00:08:02 checking for sinhf128... make[2]: [Makefile:1787: aarch64-linux-gnu/bits/largefile-config.h] Error 1 (ignored) # 00:08:35 /home/tcwg-buildslave/workspace/tcwg_gnu_0/abe/snapshots/gcc.git~master/libgfortran/generated/matmul_c4.c:2450:1: internal compiler error: in vect_do_peeling, at tree-vect-loop-manip.cc:2690 # 00:08:35 /home/tcwg-buildslave/workspace/tcwg_gnu_0/abe/snapshots/gcc.git~master/libgfortran/generated/matmul_c8.c:2450:1: internal compiler error: in vect_do_peeling, at tree-vect-loop-manip.cc:2690 # 00:08:35 make[3]: *** [Makefile:4675: matmul_c4.lo] Error 1 # 00:08:35 make[3]: *** [Makefile:4682: matmul_c8.lo] Error 1 # 00:08:39 make[2]: *** [Makefile:1693: all] Error 2 # 00:08:39 make[1]: *** [Makefile:15872: all-target-libgfortran] Error 2 # 00:09:37 make: *** [Makefile:1034: all] Error 2 from # reset_artifacts: -10 # true: 0 # build_abe binutils: 1 # build_abe stage1: 2 # build_abe linux: 3 # build_abe glibc: 4 # build_abe stage2: 5 # build_abe gdb: 6 # build_abe qemu: 7 THIS IS THE END OF INTERESTING STUFF. BELOW ARE LINKS TO BUILDS, REPRODUCTION INSTRUCTIONS, AND THE RAW COMMIT. This commit has regressed these CI configurations: - tcwg_gnu_cross_build/master-aarch64 First_bad build: https://ci.linaro.org/job/tcwg_gnu_cross_build-bisect-master-aarch64/28/artifact/artifacts/build-10b502fb78351a4073b6682c026a92c82d3da6c5/ Last_good build: https://ci.linaro.org/job/tcwg_gnu_cross_build-bisect-master-aarch64/28/artifact/artifacts/build-88b9d090aa1686ba52ce6016aeed66464fb0d4bb/ Baseline build: https://ci.linaro.org/job/tcwg_gnu_cross_build-bisect-master-aarch64/28/artifact/artifacts/build-baseline/ Even more details: https://ci.linaro.org/job/tcwg_gnu_cross_build-bisect-master-aarch64/28/artifact/artifacts/ Reproduce builds: mkdir investigate-gcc-10b502fb78351a4073b6682c026a92c82d3da6c5 cd investigate-gcc-10b502fb78351a4073b6682c026a92c82d3da6c5 # Fetch scripts git clone https://git.linaro.org/toolchain/jenkins-scripts # Fetch manifests and test.sh script mkdir -p artifacts/manifests curl -o artifacts/manifests/build-baseline.sh https://ci.linaro.org/job/tcwg_gnu_cross_build-bisect-master-aarch64/28/artifact/artifacts/manifests/build-baseline.sh --fail curl -o artifacts/manifests/build-parameters.sh https://ci.linaro.org/job/tcwg_gnu_cross_build-bisect-master-aarch64/28/artifact/artifacts/manifests/build-parameters.sh --fail curl -o artifacts/test.sh https://ci.linaro.org/job/tcwg_gnu_cross_build-bisect-master-aarch64/28/artifact/artifacts/test.sh --fail chmod +x artifacts/test.sh # Reproduce the baseline build (build all pre-requisites) ./jenkins-scripts/tcwg_gnu-build.sh @@ artifacts/manifests/build-baseline.sh # Save baseline build state (which is then restored in artifacts/test.sh) mkdir -p ./bisect rsync -a --del --delete-excluded --exclude /bisect/ --exclude /artifacts/ --exclude /gcc/ ./ ./bisect/baseline/ cd gcc # Reproduce first_bad build git checkout --detach 10b502fb78351a4073b6682c026a92c82d3da6c5 ../artifacts/test.sh # Reproduce last_good build git checkout --detach 88b9d090aa1686ba52ce6016aeed66464fb0d4bb ../artifacts/test.sh cd .. Full commit (up to 1000 lines): commit 10b502fb78351a4073b6682c026a92c82d3da6c5 Author: Richard Biener Date: Mon Jul 4 12:36:05 2022 +0200 Keep virtual SSA up-to-date in vectorizer The following removes a FIXME where we fail(ed) to keep virtual SSA up-to-date, patching up the remaining two cases I managed to trigger. I've left an assert so that we pick up cases arising for the cases I wasn't able to trigger. 2022-07-04 Richard Biener * tree-vect-loop-manip.cc (vect_do_peeling): Assert that no SSA update is needed instead of updating virtual SSA form. * tree-vect-stmts.cc (vectorizable_load): For hoisted invariant load use the loop entry virtual use. For emulated gather loads use the virtual use of the original stmt like vect_finish_stmt_generation would do. --- gcc/tree-vect-loop-manip.cc | 11 ++++------- gcc/tree-vect-stmts.cc | 15 ++++++++++++--- 2 files changed, 16 insertions(+), 10 deletions(-) diff --git a/gcc/tree-vect-loop-manip.cc b/gcc/tree-vect-loop-manip.cc index 47c4fe8de86..7b7af944dba 100644 --- a/gcc/tree-vect-loop-manip.cc +++ b/gcc/tree-vect-loop-manip.cc @@ -2683,14 +2683,11 @@ vect_do_peeling (loop_vec_info loop_vinfo, tree niters, tree nitersm1, class loop *first_loop = loop; bool irred_flag = loop_preheader_edge (loop)->flags & EDGE_IRREDUCIBLE_LOOP; - /* We might have a queued need to update virtual SSA form. As we - delete the update SSA machinery below after doing a regular + /* Historically we might have a queued need to update virtual SSA form. + As we delete the update SSA machinery below after doing a regular incremental SSA update during loop copying make sure we don't - lose that fact. - ??? Needing to update virtual SSA form by renaming is unfortunate - but not all of the vectorizer code inserting new loads / stores - properly assigns virtual operands to those statements. */ - update_ssa (TODO_update_ssa_only_virtuals); + lose that fact. */ + gcc_assert (!need_ssa_update_p (cfun)); create_lcssa_for_virtual_phi (loop); diff --git a/gcc/tree-vect-stmts.cc b/gcc/tree-vect-stmts.cc index 346d8ce2804..d6a6fe3fb38 100644 --- a/gcc/tree-vect-stmts.cc +++ b/gcc/tree-vect-stmts.cc @@ -9024,9 +9024,16 @@ vectorizable_load (vec_info *vinfo, "hoisting out of the vectorized loop: %G", stmt); scalar_dest = copy_ssa_name (scalar_dest); tree rhs = unshare_expr (gimple_assign_rhs1 (stmt)); - gsi_insert_on_edge_immediate - (loop_preheader_edge (loop), - gimple_build_assign (scalar_dest, rhs)); + edge pe = loop_preheader_edge (loop); + gphi *vphi = get_virtual_phi (loop->header); + tree vuse; + if (vphi) + vuse = PHI_ARG_DEF_FROM_EDGE (vphi, pe); + else + vuse = gimple_vuse (gsi_stmt (*gsi)); + gimple *new_stmt = gimple_build_assign (scalar_dest, rhs); + gimple_set_vuse (new_stmt, vuse); + gsi_insert_on_edge_immediate (pe, new_stmt); } /* These copies are all equivalent, but currently the representation requires a separate STMT_VINFO_VEC_STMT for each one. */ @@ -9769,6 +9776,8 @@ vectorizable_load (vec_info *vinfo, tree ref = build2 (MEM_REF, ltype, ptr, build_int_cst (ref_type, 0)); new_stmt = gimple_build_assign (elt, ref); + gimple_set_vuse (new_stmt, + gimple_vuse (gsi_stmt (*gsi))); gimple_seq_add_stmt (&stmts, new_stmt); CONSTRUCTOR_APPEND_ELT (ctor_elts, NULL_TREE, elt); } >>From skpandey@sc.intel.com Mon Jul 4 20:40:46 2022 Return-Path: X-Original-To: gcc-regression@gcc.gnu.org Delivered-To: gcc-regression@gcc.gnu.org Received: from mga06.intel.com (mga06b.intel.com [134.134.136.31]) by sourceware.org (Postfix) with ESMTPS id 7642D38582A2; Mon, 4 Jul 2022 20:40:45 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 7642D38582A2 X-IronPort-AV: E=McAfee;i="6400,9594,10398"; a="344872148" X-IronPort-AV: E=Sophos;i="5.92,243,1650956400"; d="scan'208";a="344872148" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Jul 2022 13:40:44 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.92,243,1650956400"; d="scan'208";a="649762200" Received: from scymds02.sc.intel.com ([10.82.73.244]) by fmsmga008.fm.intel.com with ESMTP; 04 Jul 2022 13:40:44 -0700 Received: from gskx-2.sc.intel.com (gskx-2.sc.intel.com [172.25.33.41]) by scymds02.sc.intel.com with ESMTP id 264KehnE018807; Mon, 4 Jul 2022 13:40:44 -0700 Received: by gskx-2.sc.intel.com (Postfix, from userid 10659939) id DC32B2864754; Mon, 4 Jul 2022 13:40:43 -0700 (PDT) Date: Mon, 04 Jul 2022 13:40:43 -0700 To: gcc-patches@gcc.gnu.org, gcc-regression@gcc.gnu.org, mjambor@suse.cz Subject: [r13-1460 Regression] FAIL: gcc.dg/tree-ssa/alias-access-path-13.c scan-tree-dump-times fre1 "return 123" 1 on Linux/x86_64 User-Agent: Heirloom mailx 12.5 7/5/10 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-Id: <20220704204043.DC32B2864754@gskx-2.sc.intel.com> From: skpandey@sc.intel.com X-Spam-Status: No, score=-3488.8 required=5.0 tests=BAYES_00, KAM_DMARC_STATUS, KAM_LAZY_DOMAIN_SECURITY, KAM_NUMSUBJECT, SPF_HELO_NONE, SPF_NONE, TXREP, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: gcc-regression@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-regression mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Jul 2022 20:40:46 -0000 On Linux/x86_64, b110e5283e368b5377e04766e4ff82cd52634208 is the first bad commit commit b110e5283e368b5377e04766e4ff82cd52634208 Author: Martin Jambor Date: Fri Jul 1 20:57:18 2022 +0200 tree-sra: Fix union handling in build_reconstructed_reference caused FAIL: gcc.dg/tree-ssa/alias-access-path-13.c scan-tree-dump-times fre1 "return 123" 1 with GCC configured with ../../gcc/configure --prefix=/local/skpandey/gccwork/toolwork/gcc-bisect-master/master/r13-1460/usr --enable-clocale=gnu --with-system-zlib --with-demangler-in-ld --with-fpmath=sse --enable-languages=c,c++,fortran --enable-cet --without-isl --enable-libmpx x86_64-linux --disable-bootstrap To reproduce: $ cd {build_dir}/gcc && make check RUNTESTFLAGS="tree-ssa.exp=gcc.dg/tree-ssa/alias-access-path-13.c --target_board='unix{-m32}'" $ cd {build_dir}/gcc && make check RUNTESTFLAGS="tree-ssa.exp=gcc.dg/tree-ssa/alias-access-path-13.c --target_board='unix{-m32\ -march=cascadelake}'" (Please do not reply to this email, for question about this report, contact me at skpgkp2 at gmail dot com)