diff options
author | Matt Arsenault <Matthew.Arsenault@amd.com> | 2017-03-11 05:40:40 +0000 |
---|---|---|
committer | Matt Arsenault <Matthew.Arsenault@amd.com> | 2017-03-11 05:40:40 +0000 |
commit | 3cb9ff88638977b772354cf44d5d651833099b3c (patch) | |
tree | a233f4f1fe44620a0a83b2b1964ddd6c8e089aa3 /llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp | |
parent | 2b38ed7b15bd51c71a850c09d2bbef028be8f491 (diff) | |
download | bcm5719-llvm-3cb9ff88638977b772354cf44d5d651833099b3c.tar.gz bcm5719-llvm-3cb9ff88638977b772354cf44d5d651833099b3c.zip |
AMDGPU: Keep track of modifiers when converting v_mac to v_mad
Since v_max_f32_e64/v_max_f16_e64 can be folded if the target
instruction supports the clamp bit, we also need to maintain
modifiers when converting v_mac to v_mad.
This fixes a rendering issue with Dirt Rally because a v_mac
instruction with the clamp bit set was converted to a v_mad
but that bit was lost during the conversion.
Fixes: e184e01dd79 ("AMDGPU: Fold FP clamp as modifier bit")
Patch by Samuel Pitoiset <samuel.pitoiset@gmail.com>
llvm-svn: 297556
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp')
0 files changed, 0 insertions, 0 deletions