[llvm] [DAG] Lower frem of power-2 using div/trunc/mul+sub (PR #91148)

Jay Foad via llvm-commits llvm-commits at lists.llvm.org
Mon May 6 01:08:46 PDT 2024


jayfoad wrote:

This expansion should also work for negative power-of-two divisors like -4.0.

This expansion should also work for fractional power-of-two divisors like +/ 0.25, unless there is some concern about the division overflowing?

https://github.com/llvm/llvm-project/pull/91148


More information about the llvm-commits mailing list