[PATCH] D87870: [GISel] Add new combines for G_FMUL

Michael Kitzan via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Sep 17 17:25:49 PDT 2020


mkitzan updated this revision to Diff 292677.
mkitzan edited the summary of this revision.
mkitzan added a comment.

- Changed `G_FMUL(x, -1.0)` to fold into `G_FSUB(0.0, x)`
- Fixed clang-tidy warnings
- Changed some fp constants in comments from `{n}` to `{n}.0`


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D87870/new/

https://reviews.llvm.org/D87870

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-fmul.mir
  llvm/test/CodeGen/AArch64/GlobalISel/combine-unsafe-fp-math.mir
  llvm/test/CodeGen/AMDGPU/GlobalISel/fmul.v2f16.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D87870.292677.patch
Type: text/x-patch
Size: 31875 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200918/29281cd9/attachment.bin>


More information about the llvm-commits mailing list