[llvm-commits] [PATCH] extend fix to PR12312 to support 256-bit vector
Duncan Sands
baldrick at free.fr
Thu Sep 6 00:59:16 PDT 2012
Hi Michael,
> --- a/lib/CodeGen/SelectionDAG/LegalizeTypesGeneric.cpp
> +++ b/lib/CodeGen/SelectionDAG/LegalizeTypesGeneric.cpp
> @@ -108,6 +108,47 @@ void DAGTypeLegalizer::ExpandRes_BITCAST(SDNode *N, SDValue &Lo, SDValue &Hi) {
>
> return;
> }
> +
> + // If <NOutVT x 2> is not a legal type, try <ExtOutVT x (2*f)>, where
> + // f = bits(NOutVT)/bits(ExtOutVT).
> + EVT ExtOutVT = TLI.getTypeToExpandTo(*DAG.getContext(), OutVT);
I'm confused - isn't ExtOutVT equal to NOutVT?
Ciao, Duncan.
More information about the llvm-commits
mailing list