From owner-svn-ports-head@freebsd.org Sun Mar 13 04:15:59 2016 Return-Path: Delivered-To: svn-ports-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id B1D37ACEA70; Sun, 13 Mar 2016 04:15:59 +0000 (UTC) (envelope-from brooks@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 7439CB52; Sun, 13 Mar 2016 04:15:59 +0000 (UTC) (envelope-from brooks@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id u2D4FwRT044276; Sun, 13 Mar 2016 04:15:58 GMT (envelope-from brooks@FreeBSD.org) Received: (from brooks@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id u2D4FwTu044272; Sun, 13 Mar 2016 04:15:58 GMT (envelope-from brooks@FreeBSD.org) Message-Id: <201603130415.u2D4FwTu044272@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: brooks set sender to brooks@FreeBSD.org using -f From: Brooks Davis Date: Sun, 13 Mar 2016 04:15:58 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r410942 - in head/devel: llvm34 llvm34/files llvm35 llvm35/files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 13 Mar 2016 04:15:59 -0000 Author: brooks Date: Sun Mar 13 04:15:57 2016 New Revision: 410942 URL: https://svnweb.freebsd.org/changeset/ports/410942 Log: Apply r219512 from LLVM which reportedly fixes a crash building firefox. PR: 207837 Added: head/devel/llvm34/files/patch-svn-219512 (contents, props changed) head/devel/llvm35/files/patch-svn-219512 (contents, props changed) Modified: head/devel/llvm34/Makefile head/devel/llvm35/Makefile Modified: head/devel/llvm34/Makefile ============================================================================== --- head/devel/llvm34/Makefile Sun Mar 13 03:58:00 2016 (r410941) +++ head/devel/llvm34/Makefile Sun Mar 13 04:15:57 2016 (r410942) @@ -2,7 +2,7 @@ PORTNAME= llvm PORTVERSION= 3.4.2 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= devel lang MASTER_SITES= http://llvm.org/releases/${PORTVERSION}/ DISTNAME= ${PORTNAME}-${PORTVERSION}.src Added: head/devel/llvm34/files/patch-svn-219512 ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/llvm34/files/patch-svn-219512 Sun Mar 13 04:15:57 2016 (r410942) @@ -0,0 +1,62 @@ +$FreeBSD$ +------------------------------------------------------------------------ +r219512 | hfinkel | 2014-10-10 17:06:20 +0000 (Fri, 10 Oct 2014) | 10 lines + +[MiSched] Fix a logic error in tryPressure() + +Fixes a logic error in the MachineScheduler found by Steve Montgomery (and +confirmed by Andy). This has gone unfixed for months because the fix has been +found to introduce some small performance regressions. However, Andy has +recommended that, at this point, we fix this to avoid further dependence on the +incorrect behavior (and then follow-up separately on any regressions), and I +agree. + +Fixes PR18883. +------------------------------------------------------------------------ +Index: lib/CodeGen/MachineScheduler.cpp +=================================================================== +--- lib/CodeGen/MachineScheduler.cpp (revision 219511) ++++ lib/CodeGen/MachineScheduler.cpp (revision 219512) +@@ -2495,8 +2495,8 @@ + } + // If one candidate decreases and the other increases, go with it. + // Invalid candidates have UnitInc==0. +- if (tryLess(TryP.getUnitInc() < 0, CandP.getUnitInc() < 0, TryCand, Cand, +- Reason)) { ++ if (tryGreater(TryP.getUnitInc() < 0, CandP.getUnitInc() < 0, TryCand, Cand, ++ Reason)) { + return true; + } + // If the candidates are decreasing pressure, reverse priority. +#Index: test/CodeGen/X86/ragreedy-last-chance-recoloring.ll +#=================================================================== +#--- test/CodeGen/X86/ragreedy-last-chance-recoloring.ll (revision 219511) +#+++ test/CodeGen/X86/ragreedy-last-chance-recoloring.ll (revision 219512) +#@@ -2,10 +2,12 @@ +# ; Without the last chance recoloring, this test fails with: +# ; "ran out of registers". +# +#-; RUN: not llc -regalloc=greedy -relocation-model=pic -lcr-max-depth=0 < %s 2>&1 | FileCheck %s --check-prefix=CHECK-DEPTH +#+; NOTE: With the fix to PR18883, we don't actually run out of registers here +#+; any more, and so those checks are disabled. This test remains only for general coverage. +#+; XXX: not llc -regalloc=greedy -relocation-model=pic -lcr-max-depth=0 < %s 2>&1 | FileCheck %s --check-prefix=CHECK-DEPTH +# ; Test whether failure due to cutoff for depth is reported +# +#-; RUN: not llc -regalloc=greedy -relocation-model=pic -lcr-max-interf=1 < %s 2>&1 | FileCheck %s --check-prefix=CHECK-INTERF +#+; XXX: not llc -regalloc=greedy -relocation-model=pic -lcr-max-interf=1 < %s 2>&1 | FileCheck %s --check-prefix=CHECK-INTERF +# ; Test whether failure due to cutoff for interference is reported +# +# ; RUN: llc -regalloc=greedy -relocation-model=pic -lcr-max-interf=1 -lcr-max-depth=0 -exhaustive-register-search < %s > %t 2>&1 +#Index: test/CodeGen/X86/misched-matmul.ll +#=================================================================== +#--- test/CodeGen/X86/misched-matmul.ll (revision 219511) +#+++ test/CodeGen/X86/misched-matmul.ll (revision 219512) +#@@ -10,7 +10,7 @@ +# ; more complex cases. +# ; +# ; CHECK: @wrap_mul4 +#-; CHECK: 22 regalloc - Number of spills inserted +#+; CHECK: 23 regalloc - Number of spills inserted +# +# define void @wrap_mul4(double* nocapture %Out, [4 x double]* nocapture %A, [4 x double]* nocapture %B) #0 { +# entry: Modified: head/devel/llvm35/Makefile ============================================================================== --- head/devel/llvm35/Makefile Sun Mar 13 03:58:00 2016 (r410941) +++ head/devel/llvm35/Makefile Sun Mar 13 04:15:57 2016 (r410942) @@ -2,7 +2,7 @@ PORTNAME= llvm DISTVERSION= 3.5.2 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= devel lang MASTER_SITES= http://llvm.org/releases/3.5.2/ DISTNAME= ${PORTNAME}-${DISTVERSION}.src Added: head/devel/llvm35/files/patch-svn-219512 ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/llvm35/files/patch-svn-219512 Sun Mar 13 04:15:57 2016 (r410942) @@ -0,0 +1,62 @@ +$FreeBSD$ +------------------------------------------------------------------------ +r219512 | hfinkel | 2014-10-10 17:06:20 +0000 (Fri, 10 Oct 2014) | 10 lines + +[MiSched] Fix a logic error in tryPressure() + +Fixes a logic error in the MachineScheduler found by Steve Montgomery (and +confirmed by Andy). This has gone unfixed for months because the fix has been +found to introduce some small performance regressions. However, Andy has +recommended that, at this point, we fix this to avoid further dependence on the +incorrect behavior (and then follow-up separately on any regressions), and I +agree. + +Fixes PR18883. +------------------------------------------------------------------------ +Index: lib/CodeGen/MachineScheduler.cpp +=================================================================== +--- lib/CodeGen/MachineScheduler.cpp (revision 219511) ++++ lib/CodeGen/MachineScheduler.cpp (revision 219512) +@@ -2495,8 +2495,8 @@ + } + // If one candidate decreases and the other increases, go with it. + // Invalid candidates have UnitInc==0. +- if (tryLess(TryP.getUnitInc() < 0, CandP.getUnitInc() < 0, TryCand, Cand, +- Reason)) { ++ if (tryGreater(TryP.getUnitInc() < 0, CandP.getUnitInc() < 0, TryCand, Cand, ++ Reason)) { + return true; + } + // If the candidates are decreasing pressure, reverse priority. +#Index: test/CodeGen/X86/ragreedy-last-chance-recoloring.ll +#=================================================================== +#--- test/CodeGen/X86/ragreedy-last-chance-recoloring.ll (revision 219511) +#+++ test/CodeGen/X86/ragreedy-last-chance-recoloring.ll (revision 219512) +#@@ -2,10 +2,12 @@ +# ; Without the last chance recoloring, this test fails with: +# ; "ran out of registers". +# +#-; RUN: not llc -regalloc=greedy -relocation-model=pic -lcr-max-depth=0 < %s 2>&1 | FileCheck %s --check-prefix=CHECK-DEPTH +#+; NOTE: With the fix to PR18883, we don't actually run out of registers here +#+; any more, and so those checks are disabled. This test remains only for general coverage. +#+; XXX: not llc -regalloc=greedy -relocation-model=pic -lcr-max-depth=0 < %s 2>&1 | FileCheck %s --check-prefix=CHECK-DEPTH +# ; Test whether failure due to cutoff for depth is reported +# +#-; RUN: not llc -regalloc=greedy -relocation-model=pic -lcr-max-interf=1 < %s 2>&1 | FileCheck %s --check-prefix=CHECK-INTERF +#+; XXX: not llc -regalloc=greedy -relocation-model=pic -lcr-max-interf=1 < %s 2>&1 | FileCheck %s --check-prefix=CHECK-INTERF +# ; Test whether failure due to cutoff for interference is reported +# +# ; RUN: llc -regalloc=greedy -relocation-model=pic -lcr-max-interf=1 -lcr-max-depth=0 -exhaustive-register-search < %s > %t 2>&1 +#Index: test/CodeGen/X86/misched-matmul.ll +#=================================================================== +#--- test/CodeGen/X86/misched-matmul.ll (revision 219511) +#+++ test/CodeGen/X86/misched-matmul.ll (revision 219512) +#@@ -10,7 +10,7 @@ +# ; more complex cases. +# ; +# ; CHECK: @wrap_mul4 +#-; CHECK: 22 regalloc - Number of spills inserted +#+; CHECK: 23 regalloc - Number of spills inserted +# +# define void @wrap_mul4(double* nocapture %Out, [4 x double]* nocapture %A, [4 x double]* nocapture %B) #0 { +# entry: