Date: Wed, 7 Jan 2015 19:37:27 +0000 (UTC) From: Dimitry Andric <dim@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r276786 - head/contrib/llvm/lib/Target/AArch64 Message-ID: <201501071937.t07JbRWT066736@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: dim Date: Wed Jan 7 19:37:26 2015 New Revision: 276786 URL: https://svnweb.freebsd.org/changeset/base/276786 Log: Pull in r222292 from upstream llvm trunk (by Weiming Zhao): [Aarch64] Customer lowering of CTPOP to SIMD should check for NEON availability This ensures llvm's AArch64 backend does not emit floating point instructions if they are disabled. Modified: head/contrib/llvm/lib/Target/AArch64/AArch64ISelLowering.cpp Modified: head/contrib/llvm/lib/Target/AArch64/AArch64ISelLowering.cpp ============================================================================== --- head/contrib/llvm/lib/Target/AArch64/AArch64ISelLowering.cpp Wed Jan 7 19:34:44 2015 (r276785) +++ head/contrib/llvm/lib/Target/AArch64/AArch64ISelLowering.cpp Wed Jan 7 19:37:26 2015 (r276786) @@ -3062,6 +3062,9 @@ SDValue AArch64TargetLowering::LowerCTPO AttributeSet::FunctionIndex, Attribute::NoImplicitFloat)) return SDValue(); + if (!Subtarget->hasNEON()) + return SDValue(); + // While there is no integer popcount instruction, it can // be more efficiently lowered to the following sequence that uses // AdvSIMD registers/instructions as long as the copies to/from
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201501071937.t07JbRWT066736>