[PATCH] D59187: [AArch64] Turn BIC creation into a DAG combine

Nikita Popov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Mar 10 01:58:18 PST 2019


nikic created this revision.
nikic added reviewers: eli.friedman, spatel, RKSimon.
Herald added subscribers: llvm-commits, hiraditya, kristof.beyls, javed.absar.
Herald added a project: LLVM.

This is an alternative to the AArch64 part of D59174 <https://reviews.llvm.org/D59174>. Instead of checking for `and x, -1` specifically, this turns the and to bic transformation from custom lowering to a custom DAG combine. This gives a chance for generic DAG combines to apply first.


Repository:
  rL LLVM

https://reviews.llvm.org/D59187

Files:
  llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
  llvm/lib/Target/AArch64/AArch64ISelLowering.h
  llvm/test/CodeGen/AArch64/sat-add.ll
  llvm/test/CodeGen/AArch64/uadd_sat_vec.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D59187.190008.patch
Type: text/x-patch
Size: 12012 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190310/4fe55d17/attachment.bin>


More information about the llvm-commits mailing list