[AMDGPU] Enable output modifiers for double precision instructions
authorBrendon Cahoon <brendon.cahoon@amd.com>
Thu, 25 Mar 2021 20:26:33 +0000 (16:26 -0400)
committerBrendon Cahoon <brendon.cahoon@amd.com>
Thu, 1 Apr 2021 14:08:17 +0000 (10:08 -0400)
commit65c8bfb5094e73f15a826d37146e4bb7c74a5a7e
treeca84c58f404059df85085b66c7ce4638bdf110a5
parentc03696da5e13d355775dd4382957b3dcd3c3ad7c
[AMDGPU] Enable output modifiers for double precision instructions

Update SIFoldOperands pass to recognize v_add_f64 and v_mul_f64
instructions for folding output modifiers.

Differential Revision: https://reviews.llvm.org/D99505
llvm/lib/Target/AMDGPU/SIFoldOperands.cpp
llvm/test/CodeGen/AMDGPU/omod.ll