[llvm] [AArch64][SME] Lower memchr to __arm_sc_memchr in streaming[-compatible] functions (PR #168896)
Benjamin Maxwell via llvm-commits
llvm-commits at lists.llvm.org
Mon Dec 1 08:19:39 PST 2025
================
@@ -194,7 +200,11 @@ SDValue AArch64SelectionDAGInfo::EmitStreamingCompatibleMemLibCall(
PointerType *RetTy = PointerType::getUnqual(*DAG.getContext());
CLI.setDebugLoc(DL).setChain(Chain).setLibCallee(
TLI->getLibcallCallingConv(NewLC), RetTy, Symbol, std::move(Args));
- return TLI->LowerCallTo(CLI).second;
+
+ auto [Result, ChainOut] = TLI->LowerCallTo(CLI);
+ if (LC == RTLIB::MEMCHR)
----------------
MacDue wrote:
(I've added a `UsesResult` flag :+1:)
https://github.com/llvm/llvm-project/pull/168896
More information about the llvm-commits
mailing list