[all-commits] [llvm/llvm-project] c9821c: [AMDGPU] Mark sin/cos load folding as modifying th...

Stanislav Mekhanoshin via All-commits all-commits at lists.llvm.org
Fri Nov 13 14:49:52 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: c9821cec7492f9ffb4586ece4a82fda1e5fe8e1e
      https://github.com/llvm/llvm-project/commit/c9821cec7492f9ffb4586ece4a82fda1e5fe8e1e
  Author: Stanislav Mekhanoshin <Stanislav.Mekhanoshin at amd.com>
  Date:   2020-11-13 (Fri, 13 Nov 2020)

  Changed paths:
    M llvm/lib/Target/AMDGPU/AMDGPULibCalls.cpp

  Log Message:
  -----------
  [AMDGPU] Mark sin/cos load folding as modifying the function.

When the load value is folded into the sin/cos operation, the
AMDGPU library calls simplifier could still mark the function
as unmodified. Instead ensure if there is an early return,
return whether the load was folded into the sin/cos call.

Authored by MJDSys

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




More information about the All-commits mailing list