[PATCH] D117764: [AArch64][SelectionDAG] CodeGen for Armv8.8/9.3 MOPS
Son Tuan Vu via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Jan 24 13:52:56 PST 2022
tyb0807 added inline comments.
================
Comment at: llvm/lib/Target/AArch64/AArch64SelectionDAGInfo.cpp:70
+ const EVT ResultTys[] = {MVT::i64, MVT::i64, MVT::Other};
+ MachineSDNode *Node = DAG.getMachineNode(MachineOpcode, DL, ResultTys, Ops);
+ DAG.setNodeMemRefs(Node, {DstOp});
----------------
dmgreen wrote:
> This is also creating Machine nodes very early. It may be better to create an ISD node for it instead. (Although I'm not sure how much it will matter - if there are no dag optimizations that happen for the memcpy nodes).
Since we are not aware of any DAGCombine pattern allowing to optimize memcpy nodes, I propose to create Machine nodes here instead of defining new ISD nodes for these instructions, then do the ISD nodes -> Machine nodes somewhere else. What do you think?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D117764/new/
https://reviews.llvm.org/D117764
More information about the llvm-commits
mailing list