[llvm] [X86] For inline memset and memcpy with minsize, use size for alignment, rather than actual alignment (PR #87003)
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Fri Sep 6 03:09:50 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,
----------------
RKSimon wrote:
Why have you overriden AlwaysInline to true?
https://github.com/llvm/llvm-project/pull/87003
More information about the llvm-commits
mailing list