[llvm] [AArch64][ISel] Recover ADDHN from OR comparison masks (PR #210943)

Harry Ramsey via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 29 13:50:37 PDT 2026


================

----------------
Harry-Ramsey wrote:

It seems we have the correct DAG shape for ADDHN here: 
```
TRUNCATE(VLSHR(ADD))
```
 but the overall DAG later is: 
```
TRUNCATE(CONCAT_VECTORS(TRUNCATE(VLSHR(ADD)), ... )
```
and this is optimised down into `UZP` resulting in our truncate for ADDHN being optimised away. 

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


More information about the llvm-commits mailing list