[PATCH 1/1] CodeGen: Use helper variable

Eric Christopher echristo at gmail.com
Mon Apr 28 15:32:13 PDT 2014


Applied thusly:

M lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
Committed r207455

thanks!

-eric

On Fri, Apr 25, 2014 at 5:58 PM, Jan Vesely <jan.vesely at rutgers.edu> wrote:
> The requested type is store few lines higher to WideVT
>
> Signed-off-by: Jan Vesely <jan.vesely at rutgers.edu>
> ---
>  lib/CodeGen/SelectionDAG/LegalizeDAG.cpp | 3 +--
>  1 file changed, 1 insertion(+), 2 deletions(-)
>
> diff --git a/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp b/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
> index f5f0a1d..5dfd493 100644
> --- a/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
> +++ b/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
> @@ -3715,8 +3715,7 @@ void SelectionDAGLegalize::ExpandNode(SDNode *Node) {
>        BottomHalf = DAG.getNode(Ops[isSigned][1], dl, DAG.getVTList(VT, VT), LHS,
>                                 RHS);
>        TopHalf = BottomHalf.getValue(1);
> -    } else if (TLI.isTypeLegal(EVT::getIntegerVT(*DAG.getContext(),
> -                                                 VT.getSizeInBits() * 2))) {
> +    } else if (TLI.isTypeLegal(WideVT)) {
>        LHS = DAG.getNode(Ops[isSigned][2], dl, WideVT, LHS);
>        RHS = DAG.getNode(Ops[isSigned][2], dl, WideVT, RHS);
>        Tmp1 = DAG.getNode(ISD::MUL, dl, WideVT, LHS, RHS);
> --
> 1.9.0
>



More information about the llvm-commits mailing list