[llvm] [ARM] Enable creation of ARMISD::CMN nodes (PR #163223)
via llvm-commits
llvm-commits at lists.llvm.org
Fri Jan 30 09:05:26 PST 2026
================
@@ -250,7 +250,7 @@ def ARMBcci64 : SDNode<"ARMISD::BCC_i64", SDT_ARMBCC_i64,
def ARMcmp : SDNode<"ARMISD::CMP", SDT_ARMCmp>;
// ARM CMN instructions.
-def ARMcmn : SDNode<"ARMISD::CMN", SDT_ARMCmp>;
+def ARMcmn : SDNode<"ARMISD::CMN", SDT_ARMCmp, [SDNPCommutative]>;
----------------
SiliconA-Z wrote:
It's not actually, cmn is adds, it is commutative, and this never mattered until now because this node was never made.
https://github.com/llvm/llvm-project/pull/163223
More information about the llvm-commits
mailing list