[llvm] [DAG] fold `avgs(sext(x), sext(y))` -> `sext(avgs(x, y))` (PR #95365)

via llvm-commits llvm-commits at lists.llvm.org
Thu Jun 13 01:03:43 PDT 2024


c8ef wrote:

> > [DAG] fold avgu(sext(x), sext(y)) -> sext(avgu(x, y))
> 
> No, this needs to be: avg**s**(sext(x), sext(y)) -> sext(avg**s**(x, y))

Sorry, my bad.

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


More information about the llvm-commits mailing list