Skip to content
Unverified Commit 4426a1b7 authored by Tanmay's avatar Tanmay Committed by GitHub
Browse files

[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.
parent 94da2b21
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment