Date: Sun, 16 Mar 2014 16:33:26 +0000 (UTC) From: Dimitry Andric <dim@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-10@freebsd.org Subject: svn commit: r263247 - in stable: 10/contrib/llvm/lib/Target/X86 9/contrib/llvm/lib/Target/X86 Message-ID: <201403161633.s2GGXQT0054169@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: dim Date: Sun Mar 16 16:33:25 2014 New Revision: 263247 URL: http://svnweb.freebsd.org/changeset/base/263247 Log: Pull in r192123 from upstream llvm trunk (by Benjamin Kramer): X86: Fix type check. Just because an integer type is illegal doesn't mean it's i64. Fixes PR17495, where an i24 triggered this code. It's intended to optimize i64 loads on 32 bit x86. Fixes "Cannot select" fatal errors when building the audio/jack port with ALSA support turned on. This is a direct commit to stable/9 and stable/10, since head already has the commit as part of an upgrade to llvm/clang 3.4. Reported by: Radim Kolar <hsn@sendmail.cz> via http://llvm.org/bugs/ Modified: stable/10/contrib/llvm/lib/Target/X86/X86ISelLowering.cpp Changes in other areas also in this revision: Modified: stable/9/contrib/llvm/lib/Target/X86/X86ISelLowering.cpp Modified: stable/10/contrib/llvm/lib/Target/X86/X86ISelLowering.cpp ============================================================================== --- stable/10/contrib/llvm/lib/Target/X86/X86ISelLowering.cpp Sun Mar 16 15:22:52 2014 (r263246) +++ stable/10/contrib/llvm/lib/Target/X86/X86ISelLowering.cpp Sun Mar 16 16:33:25 2014 (r263247) @@ -17669,7 +17669,7 @@ static SDValue PerformSINT_TO_FPCombine( if (!Ld->isVolatile() && !N->getValueType(0).isVector() && ISD::isNON_EXTLoad(Op0.getNode()) && Op0.hasOneUse() && !XTLI->getSubtarget()->is64Bit() && - !DAG.getTargetLoweringInfo().isTypeLegal(VT)) { + VT == MVT::i64) { SDValue FILDChain = XTLI->BuildFILD(SDValue(N, 0), Ld->getValueType(0), Ld->getChain(), Op0, DAG); DAG.ReplaceAllUsesOfValueWith(Op0.getValue(1), FILDChain.getValue(1));
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201403161633.s2GGXQT0054169>