[llvm] [AArch64] MachineCombiner msub matching (PR #84267)
via llvm-commits
llvm-commits at lists.llvm.org
Fri Mar 8 00:53:02 PST 2024
================
@@ -6110,8 +6110,8 @@ static bool getMaddPatterns(MachineInstr &Root,
setFound(AArch64::MADDXrrr, 2, AArch64::XZR, MCP::MULADDX_OP2);
break;
case AArch64::SUBWrr:
- setFound(AArch64::MADDWrrr, 1, AArch64::WZR, MCP::MULSUBW_OP1);
setFound(AArch64::MADDWrrr, 2, AArch64::WZR, MCP::MULSUBW_OP2);
+ setFound(AArch64::MADDWrrr, 1, AArch64::WZR, MCP::MULSUBW_OP1);
break;
case AArch64::SUBXrr:
setFound(AArch64::MADDXrrr, 1, AArch64::XZR, MCP::MULSUBX_OP1);
----------------
vfdff wrote:
yes, I'll fix that, it has similar issue, https://gcc.godbolt.org/z/79GnMPnY1
https://github.com/llvm/llvm-project/pull/84267
More information about the llvm-commits
mailing list