[all-commits] [llvm/llvm-project] c4e589: [GISel] Add new combines for unary FP instrs with ...

Michael Kitzan via All-commits all-commits at lists.llvm.org
Wed Sep 16 10:34:42 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: c4e589b7954c4e202474ce4a2101f07014792835
      https://github.com/llvm/llvm-project/commit/c4e589b7954c4e202474ce4a2101f07014792835
  Author: Michael Kitzan <mkitzan at apple.com>
  Date:   2020-09-16 (Wed, 16 Sep 2020)

  Changed paths:
    M llvm/include/llvm/CodeGen/GlobalISel/CombinerHelper.h
    M llvm/include/llvm/CodeGen/LowLevelType.h
    M llvm/include/llvm/Target/GlobalISel/Combine.td
    M llvm/lib/CodeGen/GlobalISel/CombinerHelper.cpp
    M llvm/lib/CodeGen/LowLevelType.cpp
    M llvm/test/CodeGen/AArch64/GlobalISel/combine-fabs.mir
    A llvm/test/CodeGen/AArch64/GlobalISel/combine-flog2.mir
    M llvm/test/CodeGen/AArch64/GlobalISel/combine-fneg.mir
    A llvm/test/CodeGen/AArch64/GlobalISel/combine-fptrunc.mir
    A llvm/test/CodeGen/AArch64/GlobalISel/combine-fsqrt.mir

  Log Message:
  -----------
  [GISel] Add new combines for unary FP instrs with constant operand

https://reviews.llvm.org/D86393

Patch adds five new `GICombinerRules`, one for each of the following unary
FP instrs: `G_FNEG`, `G_FABS`, `G_FPTRUNC`, `G_FSQRT`, and `G_FLOG2`. The
combine rules perform the FP operation on the constant operand and replace
the original instr with the result. Patch additionally adds new combiner
tests for the AArch64 target to test these new combiner rules.




More information about the All-commits mailing list