[PATCH] D65167: [GlobalISel] Support for inlining memcpy, memset and memmove calls

Amara Emerson via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 23 14:27:29 PDT 2019


aemerson created this revision.
aemerson added reviewers: paquette, dsanders, qcolombet, aditya_nandakumar.
Herald added subscribers: Petar.Avramovic, volkan, atanasyan, jrtc27, hiraditya, javed.absar, rovka, sdardis.
Herald added a project: LLVM.
aemerson added a parent revision: D65166: [AArch64][GlobalISel] Add support for s128 loads, stores, extracts, truncs..

This introduces a new family of combiner helper routines that re-use the target specific cost model from SelectionDAG, and generate inline implementations of the memcpy family of intrinsics.

The combines are only enabled at optimization levels higher than -O0, and give very substantial performance improvements.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D65167

Files:
  llvm/include/llvm/CodeGen/GlobalISel/CombinerHelper.h
  llvm/include/llvm/CodeGen/GlobalISel/CombinerInfo.h
  llvm/include/llvm/CodeGen/TargetLowering.h
  llvm/lib/CodeGen/GlobalISel/CombinerHelper.cpp
  llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
  llvm/lib/Target/AArch64/AArch64ISelLowering.h
  llvm/lib/Target/AArch64/AArch64PreLegalizerCombiner.cpp
  llvm/lib/Target/Mips/MipsPreLegalizerCombiner.cpp
  llvm/test/CodeGen/AArch64/GlobalISel/inline-memcpy.mir
  llvm/test/CodeGen/AArch64/GlobalISel/inline-memmove.mir
  llvm/test/CodeGen/AArch64/GlobalISel/inline-memset.mir

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D65167.211355.patch
Type: text/x-patch
Size: 54991 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190723/fbf35c49/attachment.bin>


More information about the llvm-commits mailing list