[llvm] [AArch64] Combine SEXT_INREG(CSET) to CSETM. (PR #156429)
Paul Walker via llvm-commits
llvm-commits at lists.llvm.org
Tue Sep 2 10:05:09 PDT 2025
================
@@ -26585,6 +26585,26 @@ performSignExtendInRegCombine(SDNode *N, TargetLowering::DAGCombinerInfo &DCI,
return DAG.getNode(SOpc, DL, N->getValueType(0), Ext);
}
+ // Sign extend of CSET -> CSETM.
+ if (Opc == AArch64ISD::CSEL &&
----------------
paulwalker-arm wrote:
It's not backed by any science I just wasn't sure if having two instructions requiring the same CC flags might hinder scheduling more? It seems an unlikely scenario so I'm happy to defer the decision until we have a real world use case to analyse.
https://github.com/llvm/llvm-project/pull/156429
More information about the llvm-commits
mailing list