[llvm] [DAG] SelectionDAG::canCreateUndefOrPoison - AVGFLOORU/AVGCEILU don't create undef/poison (PR #157056)

Jay Foad via llvm-commits llvm-commits at lists.llvm.org
Fri Sep 5 03:37:22 PDT 2025


jayfoad wrote:

> > It is intuitively obvious to me that AVGFLOORU/AVGCEILU/AVGFLOORS/AVGCEILS have a well defined result for all (non-undef non-poison) inputs, so I think this is fine even without Alive2 proofs.
> 
> Are you happy if I add AVGFLOORS/AVGCEILS handling top this patch as well?

Yes.

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


More information about the llvm-commits mailing list