llvm-project
6600a828 - [AArch64] Fix the sqdmulh combine for v2i16 inputs and narrow multiplies (#247053)

Commit
3 days ago
[AArch64] Fix the sqdmulh combine for v2i16 inputs and narrow multiplies (#247053) trySQDMULHCombine extended v2i16 inputs to v2i32, so sqdmulh ran on 32-bit lanes and gave the wrong result. Widen them to v4i16 instead. Also skip the combine when the multiply can wrap, which happens when it is narrower than twice the input width and has no nsw. Fixes #246969. Assisted by Claude (Anthropic).
Author
Parents
Loading