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

via llvm-commits llvm-commits at lists.llvm.org
Thu Aug 20 09:06:13 PDT 2026


Xylecrack wrote:

> not sure I'd recommend relying on this as a test as it assumes that it hasn't constant folded by a previous pass/iteration

Yea that makes sense
>  a better option would be to add support for cases where X or Y are constants - but happy for that to be handled in a future PR?

I'd be happy to add support for X/Y being constants. lmk if i should handle it in this PR itself or open a separate PR

cc @Andarwinux 

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


More information about the llvm-commits mailing list