]> granicus.if.org Git - llvm/commit
AMDGPU: Check if users of fneg can fold mods
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Thu, 2 Feb 2017 23:21:23 +0000 (23:21 +0000)
committerMatt Arsenault <Matthew.Arsenault@amd.com>
Thu, 2 Feb 2017 23:21:23 +0000 (23:21 +0000)
commitaa5760346f3414f84eb50fb5fd9afcc2f86e246d
tree5918aee7f137e97832128f48b028dc9a99020a4b
parent5674a467ef9b98ea323745fabafee6738ddc67d9
AMDGPU: Check if users of fneg can fold mods

In multi-use cases this can save a few instructions.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@293962 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/AMDGPU/AMDGPUISelLowering.cpp
test/CodeGen/AMDGPU/fmul-2-combine-multi-use.ll
test/CodeGen/AMDGPU/fneg-combines.ll
test/CodeGen/AMDGPU/frem.ll
test/CodeGen/AMDGPU/setcc-fneg-constant.ll
test/CodeGen/AMDGPU/v_mac_f16.ll