summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
diff options
context:
space:
mode:
authorMatt Arsenault <Matthew.Arsenault@amd.com>2017-03-11 05:40:40 +0000
committerMatt Arsenault <Matthew.Arsenault@amd.com>2017-03-11 05:40:40 +0000
commit3cb9ff88638977b772354cf44d5d651833099b3c (patch)
treea233f4f1fe44620a0a83b2b1964ddd6c8e089aa3 /llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
parent2b38ed7b15bd51c71a850c09d2bbef028be8f491 (diff)
downloadbcm5719-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
OpenPOWER on IntegriCloud