search for: legalizekind

Displaying 2 results from an estimated 2 matches for "legalizekind".

2013 Aug 13
1
[LLVMdev] vector type legalization
...pe()) { NumElts = (unsigned)NextPowerOf2(NumElts); EVT NVT = EVT::getVectorVT(Context, EltVT, NumElts); + while (!isTypeLegal(NVT)) { + NumElts = (unsigned)NextPowerOf2(NumElts); + NVT = EVT::getVectorVT(Context, EltVT, NumElts); + } return LegalizeKind(TypeWidenVector, NVT); } From: llvmdev-bounces at cs.uiuc.edu [mailto:llvmdev-bounces at cs.uiuc.edu] On Behalf Of Nadav Rotem Sent: Monday, August 12, 2013 1:59 PM To: Redmond, Paul Cc: LLVM Developers Mailing List Subject: Re: [LLVMdev] vector type legalization This is a bug in the impl...
2013 Aug 13
0
[LLVMdev] vector type legalization
...signed)NextPowerOf2(NumElts); > EVT NVT = EVT::getVectorVT(Context, EltVT, NumElts); > + while (!isTypeLegal(NVT)) { > + NumElts = (unsigned)NextPowerOf2(NumElts); > + NVT = EVT::getVectorVT(Context, EltVT, NumElts); > + } > return LegalizeKind(TypeWidenVector, NVT); > } > > Your patch is incorrect. We first need to widen to the next power of two. Regardless if this is a legal type or not. Thanks, Nadav