[PATCH] D57862: [AArch64] Fix condition for "high-vector" DUP optimizations.

Eli Friedman via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Feb 6 16:14:10 PST 2019


efriedma created this revision.
efriedma added a reviewer: fhahn.
Herald added subscribers: kristof.beyls, javed.absar.
Herald added a project: LLVM.

AArch64 NEON has a bunch of instructions with a "2" suffix that extract the top half of the source vectors, instead of the bottom half.  We have some DAGCombines to try to take advantage of that.  However, they assumed that any EXTRACT_VECTOR was extracting the high half of the vector in question.

This issue has apparently existed since the AArch64 backend was merged.

Fixes https://bugs.llvm.org/show_bug.cgi?id=40632 .


Repository:
  rL LLVM

https://reviews.llvm.org/D57862

Files:
  lib/Target/AArch64/AArch64ISelLowering.cpp
  test/CodeGen/AArch64/arm64-vabs.ll
  test/CodeGen/AArch64/arm64-vadd.ll
  test/CodeGen/AArch64/arm64-vmul.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D57862.185661.patch
Type: text/x-patch
Size: 17387 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190207/e6857348/attachment.bin>


More information about the llvm-commits mailing list