aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CodeGenFunction.cpp
diff options
context:
space:
mode:
authorThomas Symalla <github@thomassymalla.de>2023-05-08 20:50:20 +0200
committerThomas Symalla <thomas.symalla@amd.com>2023-05-19 12:02:21 +0200
commit91a7aa4c9b29fa217f45badeaa87c4667a28f807 (patch)
tree26a430888df862993ebc77d0c29cbfa652baf30a /clang/lib/CodeGen/CodeGenFunction.cpp
parentc10138a54f7f50c7a4d92b79a8887c51c52e2c20 (diff)
downloadllvm-91a7aa4c9b29fa217f45badeaa87c4667a28f807.zip
llvm-91a7aa4c9b29fa217f45badeaa87c4667a28f807.tar.gz
llvm-91a7aa4c9b29fa217f45badeaa87c4667a28f807.tar.bz2
[AMDGPU] Improve abs modifier usage
If a call to the llvm.fabs intrinsic has users in another reachable BB, SelectionDAG will not apply the abs modifier to these users and instead generate a v_and ..., 0x7fffffff instruction. For fneg instructions, the issue is similar. This patch implements `AMDGPUIselLowering::shouldSinkOperands`, which allows CodegenPrepare to call `tryToSinkFreeOperands`. Reviewed By: foad Differential Revision: https://reviews.llvm.org/D150347
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.cpp')
0 files changed, 0 insertions, 0 deletions