[all-commits] [llvm/llvm-project] 46f913: [GISel]: Add combine for G_FABS to G_FABS

proaditya via All-commits all-commits at lists.llvm.org
Mon Sep 14 15:56:49 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 46f9137e43f3eb2de9990765a4c482b45b0f8dd5
      https://github.com/llvm/llvm-project/commit/46f9137e43f3eb2de9990765a4c482b45b0f8dd5
  Author: Aditya Nandakumar <aditya_nandakumar at apple.com>
  Date:   2020-09-14 (Mon, 14 Sep 2020)

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

  Log Message:
  -----------
  [GISel]: Add combine for G_FABS to G_FABS

https://reviews.llvm.org/D87554

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.

Patch by mkitzan.




More information about the All-commits mailing list