From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 100627 invoked by alias); 5 Dec 2018 11:34:54 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Received: (qmail 100616 invoked by uid 89); 5 Dec 2018 11:34:54 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-26.4 required=5.0 tests=BAYES_00,GIT_PATCH_0,GIT_PATCH_1,GIT_PATCH_2,GIT_PATCH_3,KAM_NUMSUBJECT,SPF_PASS autolearn=ham version=3.3.2 spammy= X-HELO: mx1.suse.de Received: from mx2.suse.de (HELO mx1.suse.de) (195.135.220.15) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 05 Dec 2018 11:34:52 +0000 Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 784C3AD4A for ; Wed, 5 Dec 2018 11:34:50 +0000 (UTC) Date: Wed, 05 Dec 2018 11:34:00 -0000 From: Richard Biener To: gcc-patches@gcc.gnu.org Subject: [PATCH] Fix PR86637 Message-ID: User-Agent: Alpine 2.20 (LSU 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-SW-Source: 2018-12/txt/msg00272.txt.bz2 SLP vectorization forgot to reset vect_location which then "leaks" to autopar eventually accessing stale data. Committed to trunk. Richard. 2018-12-05 Richard Biener PR tree-optimization/86637 * tree-vectorizer.c (pass_slp_vectorize::execute): Reset vect_location at the end. diff --git a/gcc/tree-vectorizer.c b/gcc/tree-vectorizer.c index 0a4eca51ad7..1a6cb56a872 100644 --- a/gcc/tree-vectorizer.c +++ b/gcc/tree-vectorizer.c @@ -1303,6 +1303,8 @@ pass_slp_vectorize::execute (function *fun) loop_optimizer_finalize (); } + vect_location = dump_user_location_t (); + return 0; }