[PATCH] D115602: [X86] Memset is lowered to rep stos if MinSize is present
Roman Lebedev via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Dec 16 00:23:06 PST 2021
lebedev.ri added inline comments.
================
Comment at: llvm/include/llvm/CodeGen/SelectionDAGTargetInfo.h:80-92
/// Emit target-specific code that performs a memset.
/// This can be used by targets to provide code sequences for cases
/// that don't fit the target's parameters for simple stores and can be more
/// efficient than using a library call. This function can return a null
/// SDValue if the target declines to use custom code and a different
/// lowering strategy should be used.
virtual SDValue EmitTargetCodeForMemset(SelectionDAG &DAG, const SDLoc &dl,
----------------
Why do you need `shouldEmitTargetCodeForMemset()` if there already is `EmitTargetCodeForMemset`?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D115602/new/
https://reviews.llvm.org/D115602
More information about the llvm-commits
mailing list