[llvm] 1584e2f - Remove SrcVT only used in an assert and propagate query.

Craig Topper via llvm-commits llvm-commits at lists.llvm.org
Thu Dec 26 15:43:06 PST 2019


Thanks!

On Thu, Dec 26, 2019 at 3:29 PM Eric Christopher via llvm-commits <
llvm-commits at lists.llvm.org> wrote:

>
> Author: Eric Christopher
> Date: 2019-12-26T15:28:32-08:00
> New Revision: 1584e2f9870fb95169cd4ea7aedc05bfabe28cf6
>
> URL:
> https://github.com/llvm/llvm-project/commit/1584e2f9870fb95169cd4ea7aedc05bfabe28cf6
> DIFF:
> https://github.com/llvm/llvm-project/commit/1584e2f9870fb95169cd4ea7aedc05bfabe28cf6.diff
>
> LOG: Remove SrcVT only used in an assert and propagate query.
>
> Added:
>
>
> Modified:
>     llvm/lib/Target/X86/X86ISelLowering.cpp
>
> Removed:
>
>
>
>
> ################################################################################
> diff  --git a/llvm/lib/Target/X86/X86ISelLowering.cpp
> b/llvm/lib/Target/X86/X86ISelLowering.cpp
> index 38d6def4ca50..dd73f8a70682 100644
> --- a/llvm/lib/Target/X86/X86ISelLowering.cpp
> +++ b/llvm/lib/Target/X86/X86ISelLowering.cpp
> @@ -18586,8 +18586,8 @@ static SDValue lowerINT_TO_FP_vXi64(SDValue Op,
> SelectionDAG &DAG,
>    bool IsStrict = Op->isStrictFPOpcode();
>    MVT VT = Op->getSimpleValueType(0);
>    SDValue Src = Op->getOperand(IsStrict ? 1 : 0);
> -  MVT SrcVT = Src.getSimpleValueType();
> -  assert((SrcVT == MVT::v2i64 || SrcVT == MVT::v4i64) &&
> +  assert((Src.getSimpleValueType() == MVT::v2i64 ||
> +          Src.getSimpleValueType() == MVT::v4i64) &&
>           "Unsupported custom type");
>
>    // With AVX512DQ, but not VLX we need to widen to get a 512-bit result
> type.
>
>
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at lists.llvm.org
> https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits
>
-- 
~Craig
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20191226/467c8217/attachment.html>


More information about the llvm-commits mailing list