[llvm] [X86] For inline memset with minsize, use stosb (PR #87003)
Rose Silicon via llvm-commits
llvm-commits at lists.llvm.org
Sun Sep 15 08:55:22 PDT 2024
================
@@ -146,8 +154,8 @@ SDValue X86SelectionDAGInfo::EmitTargetCodeForMemset(
DAG.getNode(ISD::ADD, dl, AddrVT, Dst,
DAG.getConstant(Offset, dl, AddrVT)),
Val, DAG.getConstant(BytesLeft, dl, SizeVT), Alignment,
- isVolatile, AlwaysInline,
- /* CI */ nullptr, DstPtrInfo.getWithOffset(Offset)));
+ isVolatile, /*AlwaysInline*/ true, /* CI */ nullptr,
----------------
RSilicon wrote:
Though I did this to match memcpy, which does do this, and I don't think we should do a call when we know that this is for 7 bytes at most.
https://github.com/llvm/llvm-project/pull/87003
More information about the llvm-commits
mailing list