[llvm] r173755 - Teach SDISel to combine fsin / fcos into a fsincos node if the following
Eric Christopher
echristo at gmail.com
Tue Jan 29 08:08:14 PST 2013
Silly nitpicking:
+#if 1
> + return CallResult.first;
> +#else
> + SDValue RetSin = DAG.getNode(ISD::EXTRACT_ELEMENT, dl, ArgVT,
> + CallResult.first,
> DAG.getIntPtrConstant(0));
> + SDValue RetCos = DAG.getNode(ISD::EXTRACT_ELEMENT, dl, ArgVT,
> + CallResult.first,
> DAG.getIntPtrConstant(1));
> +
> + SDVTList Tys = DAG.getVTList(ArgVT, ArgVT);
> + return DAG.getNode(ISD::MERGE_VALUES, dl, Tys, RetSin, RetCos);
> +#endif
>
#if 1? :)
-eric
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20130129/0304b3a7/attachment.html>
More information about the llvm-commits
mailing list