[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 Sep 15 16:32:23 PDT 2020


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

- Rebased and fixed merge conflicts
- Removed unnecessary type checks in `constantFoldFpUnary`
- Removed `G_FPTRUNC` special case for `S64` in `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/CodeGen/LowLevelType.h
  llvm/include/llvm/Target/GlobalISel/Combine.td
  llvm/lib/CodeGen/GlobalISel/CombinerHelper.cpp
  llvm/lib/CodeGen/LowLevelType.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.292052.patch
Type: text/x-patch
Size: 16434 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200915/f930aff0/attachment.bin>


More information about the llvm-commits mailing list