[llvm] [PowerPC] using milicode call for strlen instead of lib call (PR #153600)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 19 09:11:16 PDT 2025


================
@@ -28,3 +28,11 @@ std::pair<SDValue, SDValue> PPCSelectionDAGInfo::EmitTargetCodeForMemcmp(
     SDValue Op3, const CallInst *CI) const {
   return DAG.getMemcmp(Chain, dl, Op1, Op2, Op3, CI);
 }
+
+std::pair<SDValue, SDValue>
+PPCSelectionDAGInfo::EmitTargetCodeForStrlen(SelectionDAG &DAG, const SDLoc &DL,
+                                             SDValue Chain, SDValue Src,
+                                             const CallInst *CI) const {
+  EVT PtrVT = Src.getValueType();
----------------
arsenm wrote:

Unused variable? 

https://github.com/llvm/llvm-project/pull/153600


More information about the llvm-commits mailing list