Please review: X86 sext pattern optimization

Demikhovsky, Elena elena.demikhovsky at intel.com
Sun Feb 17 01:20:17 PST 2013


I optimized the following patterns:
sext <4 x i1> to <4 x i64>
sext <4 x i8> to <4 x i64>
sext <4 x i16> to <4 x i64>

I'm running Combine on SIGN_EXTEND_IN_REG and revert SEXT patterns:
(sext_in_reg (v4i64 anyext (v4i32 x )), ExtraVT) -> (v4i64 sext (v4i32 sext_in_reg (v4i32 x , ExtraVT)))

The sext_in_reg (v4i32 x) may be lowered to shl+sar operations.

The "sar" does not exist on 64-bit operation, so lowering sext_in_reg (v4i64 x) has no vector solution.


- Elena


---------------------------------------------------------------------
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: sext_to_v4i64.diff
Type: application/octet-stream
Size: 3502 bytes
Desc: sext_to_v4i64.diff
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20130217/381f7a12/attachment.obj>


More information about the llvm-commits mailing list