[PATCH] D56544: [X86][AARCH64] Improve ISD::ABS support

Simon Pilgrim via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 10 06:10:36 PST 2019


RKSimon created this revision.
RKSimon added reviewers: craig.topper, spatel, efriedma, ikulagin.
Herald added subscribers: kristof.beyls, javed.absar.

This patch takes some of the code from D49837 <https://reviews.llvm.org/D49837> to allow us to enable ISD::ABS support for all SSE vector types plus a AARCH64 fix (arm64-vabs.ll's abs_1d_honestly tests already does this so it makes it consistent).


Repository:
  rL LLVM

https://reviews.llvm.org/D56544

Files:
  include/llvm/CodeGen/TargetLowering.h
  lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
  lib/CodeGen/SelectionDAG/LegalizeVectorOps.cpp
  lib/CodeGen/SelectionDAG/TargetLowering.cpp
  lib/Target/AArch64/AArch64ISelLowering.cpp
  lib/Target/X86/X86ISelLowering.cpp
  test/CodeGen/AArch64/iabs.ll
  test/CodeGen/X86/combine-abs.ll
  test/CodeGen/X86/viabs.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D56544.181041.patch
Type: text/x-patch
Size: 11679 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190110/1e266eda/attachment.bin>


More information about the llvm-commits mailing list