[PATCH] D89956: [AArch64] Redundant masks in downcast long multiply
Nicholas Guy via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Oct 26 07:09:17 PDT 2020
NickGuy added inline comments.
================
Comment at: llvm/lib/Target/AArch64/AArch64InstrInfo.td:1477
+def : Pat<(mul (sext_inreg GPR64:$Rn, i32), (sext_inreg GPR64:$Rm, i32)),
+ (SMADDLrrr (EXTRACT_SUBREG $Rn, sub_32), (EXTRACT_SUBREG $Rm, sub_32), XZR)>;
+def : Pat<(mul (and GPR64:$Rn, 0xFFFFFFFF), (and GPR64:$Rm, 0xFFFFFFFF)),
----------------
dmgreen wrote:
> Nit: Can you line up the ('s for the input and the output
> The other patterns below have output type's too. It's probably worth adding those just for consistency.
Parentheses aligned and output put types added, thanks :)
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D89956/new/
https://reviews.llvm.org/D89956
More information about the llvm-commits
mailing list