[all-commits] [llvm/llvm-project] fb7be0: AMDGPU/GlobalISel: Remove redundant G_FCANONICALIZE

petar-avramovic via All-commits all-commits at lists.llvm.org
Tue Apr 27 03:27:24 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: fb7be0d912cbcba68803456fbde3fd311b3922ed
      https://github.com/llvm/llvm-project/commit/fb7be0d912cbcba68803456fbde3fd311b3922ed
  Author: Petar Avramovic <Petar.Avramovic at amd.com>
  Date:   2021-04-27 (Tue, 27 Apr 2021)

  Changed paths:
    M llvm/lib/Target/AMDGPU/AMDGPUCombine.td
    M llvm/lib/Target/AMDGPU/AMDGPUPostLegalizerCombiner.cpp
    M llvm/lib/Target/AMDGPU/SIISelLowering.cpp
    M llvm/lib/Target/AMDGPU/SIISelLowering.h
    A llvm/test/CodeGen/AMDGPU/GlobalISel/combine-fcanonicalize.mir
    M llvm/test/CodeGen/AMDGPU/GlobalISel/fmed3.ll

  Log Message:
  -----------
  AMDGPU/GlobalISel: Remove redundant G_FCANONICALIZE

Add basic version of isCanonicalized for global-isel. Copied from sdag.
Add post legalizer combine that deletes G_FCANONICALIZE when its input
is already Canonicalized.

Differential Revision: https://reviews.llvm.org/D96605




More information about the All-commits mailing list