aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CodeGenModule.cpp
diff options
context:
space:
mode:
authorNikita Popov <npopov@redhat.com>2025-06-04 10:41:30 +0200
committerGitHub <noreply@github.com>2025-06-04 10:41:30 +0200
commit54da543a14da6dd0e594875241494949cb659b08 (patch)
tree2610a4200b7200e16fa56a58f2c4d8115f9c627f /clang/lib/CodeGen/CodeGenModule.cpp
parent01a6d0fffb8978040e0a6d5471ec432eb51ddee7 (diff)
downloadllvm-54da543a14da6dd0e594875241494949cb659b08.zip
llvm-54da543a14da6dd0e594875241494949cb659b08.tar.gz
llvm-54da543a14da6dd0e594875241494949cb659b08.tar.bz2
[SelectionDAG] Avoid one comparison when legalizing fmaximum (#142732)
When ordering signed zero, only check the sign of one of the values. We already know at this point that both values must be +/-0.0, so it is sufficient to check one of them to correctly order them. For example, for fmaximum, if we know LHS is `+0.0` then we can always select LHS, value of RHS does not matter. If LHS is `-0.0` we can always select RHS, value of RHS doesn't matter.
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions