summaryrefslogtreecommitdiff
path: root/llvm/lib/Bitcode/Reader/BitcodeReader.cpp
diff options
context:
space:
mode:
authorDavid Green <david.green@arm.com>2024-06-09 12:28:20 +0100
committerDavid Green <david.green@arm.com>2024-06-09 12:28:20 +0100
commita284bdb31146160352da905a888da738f2661b50 (patch)
tree4492295214ef8c8ec96c9416391ea97ecedd119a /llvm/lib/Bitcode/Reader/BitcodeReader.cpp
parent53fecef1ec5cb502900f82b07036b28cb0fb9f0f (diff)
[DAG] Fold fdiv X, c2 -> fmul X, 1/c2 without AllowReciprocal if exact (#93882)
This moves the combine of fdiv by constant to fmul out of an 'if (Options.UnsafeFPMath || Flags.hasAllowReciprocal()' block, so that it triggers if the divide is exact. An extra check for Recip.isDenormal() is added as multiple places make reference to it being unsafe or slow on certain platforms.
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitcodeReader.cpp')
0 files changed, 0 insertions, 0 deletions