[PATCH] D51751: Merge clang's isRepeatedBytePattern with LLVM's isBytewiseValue

JF Bastien via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Sep 20 14:09:19 PDT 2018


jfb updated this revision to Diff 166359.
jfb marked 2 inline comments as done.
jfb added a comment.

- Augment isBytewiseValue to be as powerful as clang's version. Update code that used it to handle undef merging. This captures more memcpy patterns and can generate memcpy of undef (which selection DAG later gets rid of).
- Update comments and move Ctx down a bit.
- Remove ref param
- Remove extra changes, left over from clang-format


Repository:
  rL LLVM

https://reviews.llvm.org/D51751

Files:
  include/llvm/Analysis/ValueTracking.h
  lib/Analysis/ValueTracking.cpp
  lib/Transforms/Scalar/LoopIdiomRecognize.cpp
  lib/Transforms/Scalar/MemCpyOptimizer.cpp
  test/Transforms/MemCpyOpt/fca2memcpy.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D51751.166359.patch
Type: text/x-patch
Size: 10194 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180920/9d3023c7/attachment-0001.bin>


More information about the llvm-commits mailing list