diff options
author | John Brawn <john.brawn@arm.com> | 2024-12-06 11:40:30 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-12-06 11:40:30 +0000 |
commit | 99dc3967595c472b6edbe789a1346b0350294567 (patch) | |
tree | 18fb3cac2fb44a1004a9b62a36f747b221add786 /llvm/lib/Transforms/Utils/CloneFunction.cpp | |
parent | 76db47335903cb65d3027c0a77658f488d8ce659 (diff) | |
download | llvm-99dc3967595c472b6edbe789a1346b0350294567.zip llvm-99dc3967595c472b6edbe789a1346b0350294567.tar.gz llvm-99dc3967595c472b6edbe789a1346b0350294567.tar.bz2 |
[InstCombine] Make fptrunc combine use intersection of fast math flags (#118808)
These combines involve swapping the fptrunc with its operand, and using
the intersection of fast math flags is the safest option as e.g. if we
have (fptrunc (fneg ninf x)) then (fneg ninf (fptrunc x)) will not be
correct as if x is a not within the range of the destination type the
result of (fptrunc x) will be inf.
Diffstat (limited to 'llvm/lib/Transforms/Utils/CloneFunction.cpp')
0 files changed, 0 insertions, 0 deletions