[PATCH] D87554: [GISel]: Add combine for G_FABS to G_FABS

Michael Kitzan via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Sep 11 19:10:51 PDT 2020


mkitzan created this revision.
mkitzan added reviewers: aditya_nandakumar, volkan, dsanders, paquette, arsenm.
mkitzan added a project: LLVM.
Herald added subscribers: llvm-commits, hiraditya, kristof.beyls.
mkitzan requested review of this revision.
Herald added a subscriber: wdng.

Patch adds one new `GICombinerRule` for `G_FABS`. The combine rule folds `G_FABS(G_FABS(X))` to `G_FABS(X)`. Patch additionally adds new combiner tests for the AArch64 target to test this new combiner rule.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D87554

Files:
  llvm/include/llvm/CodeGen/GlobalISel/CombinerHelper.h
  llvm/include/llvm/Target/GlobalISel/Combine.td
  llvm/lib/CodeGen/GlobalISel/CombinerHelper.cpp
  llvm/test/CodeGen/AArch64/GlobalISel/combine-fabs.mir

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D87554.291368.patch
Type: text/x-patch
Size: 4929 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200912/92dfd6f2/attachment.bin>


More information about the llvm-commits mailing list