svn commit: r263247 - in stable: 10/contrib/llvm/lib/Target/X86 9/contrib/llvm/lib/Target/X86
Dimitry Andric
dim at FreeBSD.org
Sun Mar 16 16:33:26 UTC 2014
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 at sendmail.cz> via http://llvm.org/bugs/
Modified:
stable/9/contrib/llvm/lib/Target/X86/X86ISelLowering.cpp
Changes in other areas also in this revision:
Modified:
stable/10/contrib/llvm/lib/Target/X86/X86ISelLowering.cpp
Modified: stable/9/contrib/llvm/lib/Target/X86/X86ISelLowering.cpp
==============================================================================
--- stable/9/contrib/llvm/lib/Target/X86/X86ISelLowering.cpp Sun Mar 16 15:22:52 2014 (r263246)
+++ stable/9/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));
More information about the svn-src-all
mailing list