[llvm] [PowerPC] using milicode call for strcpy instead of lib call (PR #174782)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Wed Jan 7 08:25:01 PST 2026
================
@@ -9166,6 +9166,32 @@ SelectionDAG::getMemcmp(SDValue Chain, const SDLoc &dl, SDValue Mem0,
return TLI->LowerCallTo(CLI);
}
+std::pair<SDValue, SDValue> SelectionDAG::getStrcpy(SDValue Chain,
+ const SDLoc &dl,
+ SDValue Dst, SDValue Src,
+ const CallInst *CI) {
+ const char *LibCallName = TLI->getLibcallName(RTLIB::STRCPY);
+ if (!LibCallName)
+ return {};
----------------
arsenm wrote:
Don't check compatibility through the string name, use getLibcallImpl and check if it's LibcallImpl::Unsupported
https://github.com/llvm/llvm-project/pull/174782
More information about the llvm-commits
mailing list