[llvm-commits] [PATCH] - Instcombine vector code optimizations

Rotem, Nadav nadav.rotem at intel.com
Thu Apr 7 04:24:12 PDT 2011


Hi, 

Please review the attached patch. I implemented two main optimizations:

1. Getelementptr (PTR, extract (vcast)))  -> Getelementptr (PTR, cast (extract)))  scalarize the casting of pointer index. 
   This generates much better code in cases where the gep index comes from a vector. 

2. Extend the EvaluateInDifferentType and CanEvaluateXXX to support Extract/Insert/ShuffleElement instructions.

Nadav


---------------------------------------------------------------------
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 --------------
A non-text attachment was scrubbed...
Name: llvm_gepcast_evalas.patch
Type: application/octet-stream
Size: 10974 bytes
Desc: llvm_gepcast_evalas.patch
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20110407/7db2c7ed/attachment.obj>


More information about the llvm-commits mailing list