[PATCH] Fix constant folding for one lane vectors (PR15611)
Silviu Baranga
silbar01 at arm.com
Mon Apr 15 07:56:00 PDT 2013
Ping!
> -----Original Message-----
> From: Silviu Baranga [mailto:silbar01 at arm.com]
> Sent: 12 April 2013 15:29
> To: llvm-commits at cs.uiuc.edu
> Subject: [PATCH] Fix constant folding for one lane vectors (PR15611)
>
> Hi,
>
> The attached patch fixes constant folding for one lane vectors,
> which is the root cause for PR15611. The faulty code path is
> taken by scalarizing vector code during type legalization.
>
> The constant folding code will currently return a scalar when
> taking one lane input vectors, which can cause an assertion failure
> later.
>
> The changed code was wrong because if the size of the output vector
> is 1, we can still be in the case where we need to return a one lane
> vector.
>
> Please review!
>
> Thanks,
> Silviu
More information about the llvm-commits
mailing list