aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Transforms/Utils/ModuleUtils.cpp
diff options
context:
space:
mode:
authorTanmay <tnmysachan@gmail.com>2024-01-17 15:20:10 +0530
committerGitHub <noreply@github.com>2024-01-17 16:50:10 +0700
commit4426a1b7593a6e15caa09006d2446c95c19b5193 (patch)
tree3ead3f9d43774791979f07baa42f27873119f2f5 /llvm/lib/Transforms/Utils/ModuleUtils.cpp
parent94da2b21ee3f2baed729333ec8bbf96f92c1fa84 (diff)
downloadllvm-4426a1b7593a6e15caa09006d2446c95c19b5193.zip
llvm-4426a1b7593a6e15caa09006d2446c95c19b5193.tar.gz
llvm-4426a1b7593a6e15caa09006d2446c95c19b5193.tar.bz2
[InstCombine] Add log-pow simplification for FP exponent edge case. (#76641)
Fixes https://github.com/llvm/llvm-project/issues/76549 The cause of the optimization miss was - 1. `optimizePow` converting almost integer FP exponents to integer, and turning `pow` to `powi`. 2. `optimizeLog` not accepting `Intrinsic::powi` as a target. This patch converts constantInt back to constantFP where applicable and adds a test.
Diffstat (limited to 'llvm/lib/Transforms/Utils/ModuleUtils.cpp')
0 files changed, 0 insertions, 0 deletions