[llvm] r319891 - [X86] Avoid unused variable warning in Release builds. NFCI.
Alexander Kornienko via llvm-commits
llvm-commits at lists.llvm.org
Wed Dec 6 05:51:42 PST 2017
Thanks!
On Wed, Dec 6, 2017 at 2:32 PM, Benjamin Kramer via llvm-commits <
llvm-commits at lists.llvm.org> wrote:
> Author: d0k
> Date: Wed Dec 6 05:32:36 2017
> New Revision: 319891
>
> URL: http://llvm.org/viewvc/llvm-project?rev=319891&view=rev
> Log:
> [X86] Avoid unused variable warning in Release builds. NFCI.
>
> Modified:
> llvm/trunk/lib/Target/X86/X86ISelLowering.cpp
>
> Modified: llvm/trunk/lib/Target/X86/X86ISelLowering.cpp
> URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/
> X86/X86ISelLowering.cpp?rev=319891&r1=319890&r2=319891&view=diff
> ============================================================
> ==================
> --- llvm/trunk/lib/Target/X86/X86ISelLowering.cpp (original)
> +++ llvm/trunk/lib/Target/X86/X86ISelLowering.cpp Wed Dec 6 05:32:36 2017
> @@ -16194,7 +16194,6 @@ static SDValue LowerANY_EXTEND(SDValue O
>
> static SDValue LowerZERO_EXTEND(SDValue Op, const X86Subtarget &Subtarget,
> SelectionDAG &DAG) {
> - MVT VT = Op.getSimpleValueType();
> SDValue In = Op.getOperand(0);
> MVT SVT = In.getSimpleValueType();
>
> @@ -16205,8 +16204,9 @@ static SDValue LowerZERO_EXTEND(SDValue
> if (SDValue Res = LowerAVXExtend(Op, DAG, Subtarget))
> return Res;
>
> - assert(!VT.is256BitVector() || !SVT.is128BitVector() ||
> - VT.getVectorNumElements() != SVT.getVectorNumElements());
> + assert(!Op.getSimpleValueType().is256BitVector() ||
> !SVT.is128BitVector() ||
> + Op.getSimpleValueType().getVectorNumElements() !=
> + SVT.getVectorNumElements());
> return SDValue();
> }
>
>
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20171206/c5dcbf0e/attachment.html>
More information about the llvm-commits
mailing list