[llvm-commits] Patch: Widening in LegalizeType

Mon Ping Wang wangmp at apple.com
Wed Nov 19 02:15:27 PST 2008


Hi,

This is a patch for adding widening support into LegalizeType.  One  
issue that I ran into is that for Vector shuffles, the mask operand  
doesn't need to be widened even though it type might indicate that it  
should be widened .e.g, a shuffle of v2i64 would have a shuffle mask  
v2i32.   To avoid this problem when scanning the operands, it checks  
if it is a vector shuffle and if it is the second operand.  If so, it  
adds the node to the set of result nodes to ignore and continue.  I  
didn't include the tests that will go into the check in.  Please let  
me know if you have any comments.

Thanks,
   -- Mon Ping


-------------- next part --------------
A non-text attachment was scrubbed...
Name: widen.patch
Type: application/octet-stream
Size: 45135 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20081119/898864e6/attachment.obj>


More information about the llvm-commits mailing list