[PATCH] D55147: Exclude non-integral pointers in isBytewiseValue

Cherry Zhang via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Nov 30 13:53:39 PST 2018


cherry created this revision.
cherry added a reviewer: thanm.
Herald added a subscriber: llvm-commits.

Technically, non-integral pointers "have an unspecified bitwise
representation", so they are not bytewise values. In particular,
don't use memset on those values.


Repository:
  rL LLVM

https://reviews.llvm.org/D55147

Files:
  include/llvm/Analysis/ValueTracking.h
  lib/Analysis/ValueTracking.cpp
  lib/Transforms/Scalar/LoopIdiomRecognize.cpp
  lib/Transforms/Scalar/MemCpyOptimizer.cpp
  test/Transforms/MemCpyOpt/non-integral-ptr.ll
  unittests/Analysis/ValueTrackingTest.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D55147.176198.patch
Type: text/x-patch
Size: 9605 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20181130/8aae6ddb/attachment.bin>


More information about the llvm-commits mailing list