Lower certain build_vectors to insertps instructions

Demikhovsky, Elena elena.demikhovsky at intel.com
Sat Apr 26 23:44:00 PDT 2014


I added some comments, please see inside.

-  Elena

-----Original Message-----
From: Filipe Cabecinhas [mailto:filcab+llvm.phabricator at gmail.com] 
Sent: Sunday, April 27, 2014 08:54
To: filcab+llvm.phabricator at gmail.com; nrotem at apple.com; Demikhovsky, Elena; craig.topper at gmail.com
Cc: llvm-commits at cs.uiuc.edu
Subject: [PATCH] Lower certain build_vectors to insertps instructions

Hi nadav, delena, craig.topper,

Vectors built with zeros and elements in the same order as another
(source) vector are optimized to be built using a single insertps instruction.

Further optimizations are possible, described in TODO comments.
I will be implementing at least some of them in the near future.

Added some tests for different cases where this optimization triggers.

http://reviews.llvm.org/D3521

Files:
  lib/Target/X86/X86ISelLowering.cpp
  test/CodeGen/X86/sse41.ll
---------------------------------------------------------------------
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.




More information about the llvm-commits mailing list