[llvm] [DAGCombiner] Handle type-promoted constants in UDIV lowering (PR #169491)

Valeriy Savchenko via llvm-commits llvm-commits at lists.llvm.org
Wed Dec 3 06:47:30 PST 2025


SavchenkoValeriy wrote:

> > > Can we do the same for sdiv/srem too?
> > 
> > 
> > #169924 for SDIV/SREM #169950 for SDIV exact #169949 for UDIV exact
> 
> OK great. If you can update the code for the if condition this looks OK to me.

@davemgreen Sounds good! I resolved the comments now. Please tell me if there is anything else I can improve. Thanks!

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


More information about the llvm-commits mailing list