From patchwork Tue Apr 24 08:05:45 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Biener X-Patchwork-Id: 154618 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) by ozlabs.org (Postfix) with SMTP id 77E98B6FDF for ; Tue, 24 Apr 2012 18:06:11 +1000 (EST) Comment: DKIM? See http://www.dkim.org DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=gcc.gnu.org; s=default; x=1335859573; h=Comment: DomainKey-Signature:Received:Received:Received:Received:Date: From:To:Subject:Message-ID:MIME-Version:Content-Type: Mailing-List:Precedence:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:Sender:Delivered-To; bh=UCMKFPTyS+T7QWzAPprZ Q4/7gg8=; b=wDjmJrp5BX2Gh5h+9Qg/F4vOWMf9eq1kCm9fpVQYwFoAusyXBahe IpUwYgcc5i2TdNxGmKg8fdinBrqEMefQUSqt/5GLs/AeqX0GqOCBIJeBNJmvJXpm DgbAdDCyxqYuelWyjpCt3c/Aax0cY8nr/xAlI+j8Tn/v0Gi84SKWyKU= Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=default; d=gcc.gnu.org; h=Received:Received:X-SWARE-Spam-Status:X-Spam-Check-By:Received:Received:Date:From:To:Subject:Message-ID:MIME-Version:Content-Type:Mailing-List:Precedence:List-Id:List-Unsubscribe:List-Archive:List-Post:List-Help:Sender:Delivered-To; b=dId4gRwNzTqRJsZ/pKFQ4ZZ/8OYZeqyEI8cTDmQGhlfzq9ECEtOnj6U8vEKg8P bLIguUJL0vI7yKd855e+yq70ZQQvS8BQgfI6db7XaSTqIHaHcTirk9AOpeUZJ8qk BvWHhHKsEz9TXodSFtVthhQwJxyaS4PNnxElFU1r77u74=; Received: (qmail 23454 invoked by alias); 24 Apr 2012 08:06:01 -0000 Received: (qmail 23444 invoked by uid 22791); 24 Apr 2012 08:05:59 -0000 X-SWARE-Spam-Status: No, hits=-5.3 required=5.0 tests=AWL, BAYES_00, KHOP_RCVD_UNTRUST, RCVD_IN_DNSWL_HI, T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from cantor2.suse.de (HELO mx2.suse.de) (195.135.220.15) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 24 Apr 2012 08:05:46 +0000 Received: from relay1.suse.de (unknown [195.135.220.254]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx2.suse.de (Postfix) with ESMTP id 33A8F90CE3 for ; Tue, 24 Apr 2012 10:05:45 +0200 (CEST) Date: Tue, 24 Apr 2012 10:05:45 +0200 (CEST) From: Richard Guenther To: gcc-patches@gcc.gnu.org Subject: [PATCH] Fix PR53098 Message-ID: MIME-Version: 1.0 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org This fixes PR53098. Committed as obvious. Richard. 2012-04-24 Richard Guenther PR tree-optimization/53098 * tree-vect-loop.c (vect_analyze_loop_operations): Fixup comparison sign. Index: gcc/tree-vect-loop.c =================================================================== --- gcc/tree-vect-loop.c (revision 186751) +++ gcc/tree-vect-loop.c (working copy) @@ -1411,7 +1411,7 @@ vect_analyze_loop_operations (loop_vec_i if ((LOOP_VINFO_NITERS_KNOWN_P (loop_vinfo) && (LOOP_VINFO_INT_NITERS (loop_vinfo) < vectorization_factor)) || ((max_niter = max_stmt_executions_int (loop)) != -1 - && max_niter < vectorization_factor)) + && (unsigned HOST_WIDE_INT) max_niter < vectorization_factor)) { if (vect_print_dump_info (REPORT_UNVECTORIZED_LOCATIONS)) fprintf (vect_dump, "not vectorized: iteration count too small.");