[llvm] [VectorCombine] fold fptoui(fdiv(uitofp(x),uitofp(y))) into udiv(x,y) (PR #214844)

Simon Pilgrim via llvm-commits llvm-commits at lists.llvm.org
Sun Aug 23 06:06:24 PDT 2026


RKSimon wrote:

You probably either need to limit it to splat floats (m_APFloat) or ConstantFoldConstant (from m_Constant) - either way you will have to use ValueTracking on the converted uint value to determine if the active bits are sufficiently small for the mantissa - might not be a bad idea to convert the existing test to use the same ValueTracking machinery as well? That way you can handle small uints in larger types.

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


More information about the llvm-commits mailing list