[llvm-commits] A patch fixing # 9173

Rotem, Nadav nadav.rotem at intel.com
Wed Feb 9 07:43:13 PST 2011


I attached a partial fix to #9173.

1. On vector selects:
   a. For vectors, If the cond is all-zero: pick the second value
   b. For vectors, If the cond and vals are int-vectors, create a new int vector

2. For Bitcast:
   If the value is const-int and all-one, return a new all-one vector of new type.

It does not eliminate all of the code in this bug-report because the Endianess of the vector is unknown at this point, so we can't perform bitcast.

Patch attached.





---------------------------------------------------------------------
Intel Israel (74) Limited

This e-mail and any attachments may contain confidential material for
the sole use of the intended recipient(s). Any review or distribution
by others is strictly prohibited. If you are not the intended
recipient, please contact the sender and delete all copies.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20110209/6abbe635/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: constant_fold_cast.diff
Type: application/octet-stream
Size: 2842 bytes
Desc: constant_fold_cast.diff
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20110209/6abbe635/attachment.obj>


More information about the llvm-commits mailing list