aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
diff options
context:
space:
mode:
authorDavid Green <david.green@arm.com>2025-10-08 07:26:25 +0100
committerGitHub <noreply@github.com>2025-10-08 07:26:25 +0100
commita29d7a1f04ce2ba50300398fc5670b499e5d89d9 (patch)
tree42e36f1093796c60e0846681b5c4ebdcbb901469 /llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
parenta1f9ad2a38a6a5a8b38918e0d18c6b5672e44892 (diff)
downloadllvm-a29d7a1f04ce2ba50300398fc5670b499e5d89d9.zip
llvm-a29d7a1f04ce2ba50300398fc5670b499e5d89d9.tar.gz
llvm-a29d7a1f04ce2ba50300398fc5670b499e5d89d9.tar.bz2
[GlobalISel] fdiv to fmul transform (#144305)
This is a port of the SDAG DAGCombiner::combineRepeatedFPDivisors combine that looks for multiple fdiv operations with the same divisor and converts them to a single reciprocal fdiv and multiple fmuls. It is currently a fairly faithful port, with some additions to make sure that the newly created fdiv dominates all new uses. Compared to the SDAG version it also drops some logic about splat uses which assumes no vector fdivs and some logic about x/sqrt(x) which does not yet apply to GISel.
Diffstat (limited to 'llvm/lib/Bitcode/Writer/BitcodeWriter.cpp')
0 files changed, 0 insertions, 0 deletions