[llvm] [AArch64] Combine vector add(trunc(shift)) (PR #169523)

Sam Tebbs via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 25 09:49:09 PST 2025


================
@@ -22595,6 +22596,37 @@ static SDValue performSubWithBorrowCombine(SDNode *N, SelectionDAG &DAG) {
                      Flags);
 }
 
+// add(trunc(ashr(A, C)), trunc(lshr(B, BW-1))), with C >= BW
----------------
SamTebbs33 wrote:

Should `B` here be `A`? That seems to be what the code suggests.

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


More information about the llvm-commits mailing list