[llvm-commits] Patch: LegalizeType for promoting some operands
Mon Ping Wang
monping at apple.com
Sat Dec 13 18:25:20 PST 2008
Hi Duncan,
For the insert issue, the following program will cause it. The
scalar to vector problem is show in widening where we generate a
scalar_to_vector of an i64 to v2i64 (when we disable mmx). I'm going
to try to checkin the widening this weekend or Monday (it hasn't
changed since the last patch). I'll try to construct IR that will
generate a scalar_to_vector node with the current tot llvm. The
extract vector element is more difficult as it was shown in
architecture where we need promote basic integer types.
Cheers,
-- Mon Ping
-------------- next part --------------
A non-text attachment was scrubbed...
Name: leg_insert.ll
Type: application/octet-stream
Size: 316 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20081213/831803eb/attachment.obj>
-------------- next part --------------
On Dec 13, 2008, at 1:07 PM, Duncan Sands wrote:
> Hi Mon Ping, do you have any testcases? I will reply completely
> later.
>
> Ciao,
>
> Duncan.
>
> PS:
>
>> - A modification to PromoteIntRes_EXTRACT_VECTOR_ELT to check if the
>> extract vector element type is the expected promoted type and if not,
>> then extend the result.
>
> Yes, this is a bug.
More information about the llvm-commits
mailing list