[PATCH] [AArch64] Fix a bug generating incorrect instruction when building small vector.

Kevin Qin kevinqindev at gmail.com
Fri Jul 4 02:08:16 PDT 2014


Hi t.p.northover, mcrosier,


This bug is introduced by r211144. When building a v4i8 vector, v4i8 will be widened to v4i16 after legalization. Then the element of operand is smaller than the element of result, but previous commit can only handle the contrary condition. This patch is going to handle this scenario and to generate optimized codes like ZIP1. Please review.


Regard,
Kevin

http://reviews.llvm.org/D4385

Files:
  lib/Target/AArch64/AArch64ISelLowering.cpp
  test/CodeGen/AArch64/neon-perm.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D4385.11080.patch
Type: text/x-patch
Size: 7836 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20140704/4d082e70/attachment.bin>


More information about the llvm-commits mailing list