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

JF Bastien via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Sep 7 11:51:59 PDT 2018


jfb updated this revision to Diff 164485.
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).


Repository:
  rL LLVM

https://reviews.llvm.org/D51751

Files:
  include/llvm/Analysis/ValueTracking.h
  include/llvm/Transforms/Scalar/MemCpyOptimizer.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.164485.patch
Type: text/x-patch
Size: 11465 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180907/eacac343/attachment.bin>


More information about the llvm-commits mailing list