[PATCH] D112204: [AArch64] Fold neg(csel(neg(a), b)) to csel(a, neg(b))

Dave Green via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Oct 21 00:54:50 PDT 2021


dmgreen created this revision.
dmgreen added reviewers: jaykang10, SjoerdMeijer, samtebbs, efriedma.
Herald added subscribers: hiraditya, kristof.beyls.
dmgreen requested review of this revision.
Herald added a project: LLVM.

This folds a negation through a csel, which can come up during the lowering of negative abs.


https://reviews.llvm.org/D112204

Files:
  llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
  llvm/test/CodeGen/AArch64/csel-addsubconst.ll
  llvm/test/CodeGen/AArch64/neg-abs.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D112204.381165.patch
Type: text/x-patch
Size: 3548 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20211021/c7c79f26/attachment.bin>


More information about the llvm-commits mailing list