[llvm] [DAG] Recognise AVGFLOOR (((A >> 1) + (B >> 1)) + (A & B & 1)) patterns (PR #169644)

Mikael Holmen via llvm-commits llvm-commits at lists.llvm.org
Thu Dec 11 06:13:32 PST 2025


mikaelholmen wrote:

> That can happen in cases where SmallVector<> screws up the CalculateSmallVectorDefaultInlinedElements calculation - please can you try with this local change:

Thanks, unfortunately it didn't help.

> (note @bermondd is working on removing the SmallVector entirely)

Sounds good. Maybe I'll just wait and see how it behaves after that improvement then.
(We reverted the patch downstream so we're not suffering right now, I just hope there won't be other conflicting changes to that code before the problem is fixed.)

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


More information about the llvm-commits mailing list