[GlobalISel] Combine fabs(fneg(x)) to fabs(x)
authorMirko Brkusanin <Mirko.Brkusanin@amd.com>
Tue, 5 Oct 2021 11:43:39 +0000 (13:43 +0200)
committerMirko Brkusanin <Mirko.Brkusanin@amd.com>
Tue, 5 Oct 2021 11:43:39 +0000 (13:43 +0200)
commit40e00063bcb77873274504094116f29ecc2d1080
tree5b7be0c0427d345193a5a65963810e551af4d80f
parentaf9dce18bfdb09ab1dd8b4c55979e67799a0b322
[GlobalISel] Combine fabs(fneg(x)) to fabs(x)

Differential Revision: https://reviews.llvm.org/D110943
llvm/include/llvm/CodeGen/GlobalISel/CombinerHelper.h
llvm/include/llvm/Target/GlobalISel/Combine.td
llvm/lib/CodeGen/GlobalISel/CombinerHelper.cpp
llvm/test/CodeGen/AMDGPU/GlobalISel/combine-fabs-fneg.mir [new file with mode: 0644]
llvm/test/CodeGen/AMDGPU/GlobalISel/roundeven.ll