[PATCH] D86393: [GISel] Add combines for unary FP instrs with constant operand

Michael Kitzan via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 25 09:52:42 PDT 2020


mkitzan updated this revision to Diff 287697.
mkitzan added a comment.

- `match` / `apply` functions use `Optional<APFloat>` to pass info about the constant FP.
- Updated rounding modes to be `rmNearestTiesToEven`
- Refactored `constantFoldFpUnary`


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

https://reviews.llvm.org/D86393

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
  llvm/test/CodeGen/AArch64/GlobalISel/combine-flog2.mir
  llvm/test/CodeGen/AArch64/GlobalISel/combine-fneg.mir
  llvm/test/CodeGen/AArch64/GlobalISel/combine-fptrunc.mir
  llvm/test/CodeGen/AArch64/GlobalISel/combine-fsqrt.mir

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D86393.287697.patch
Type: text/x-patch
Size: 18220 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200825/343ac497/attachment.bin>


More information about the llvm-commits mailing list