[all-commits] [llvm/llvm-project] 11338e: [LoopIdiom] Transform memmove-like loop into memmo...

yurai007 via All-commits all-commits at lists.llvm.org
Thu Jul 22 04:06:56 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 11338e998df1d577cee61e3443da750686c14475
      https://github.com/llvm/llvm-project/commit/11338e998df1d577cee61e3443da750686c14475
  Author: Dawid Jurczak <dawid_jurek at vp.pl>
  Date:   2021-07-22 (Thu, 22 Jul 2021)

  Changed paths:
    M llvm/lib/Transforms/Scalar/LoopIdiomRecognize.cpp
    M llvm/test/Transforms/LoopIdiom/X86/unordered-atomic-memcpy.ll
    M llvm/test/Transforms/LoopIdiom/basic.ll

  Log Message:
  -----------
  [LoopIdiom] Transform memmove-like loop into memmove (PR46179)

The purpose of patch is to learn Loop idiom recognition pass how to recognize simple memmove patterns
in similar way like GCC: https://godbolt.org/z/fh95e83od
LoopIdiomRecognize already has machinery for memset and memcpy recognition, patch tries to extend exisiting capabilities with minimal effort.

Differential Revision: https://reviews.llvm.org/D104464




More information about the All-commits mailing list