[PATCH] Fix aliasing issue caused by MemCpyOptimizer (PR18304)

David Wiberg dwiberg at gmail.com
Fri Jun 20 06:13:22 PDT 2014


Hello,

The attached patch fixes an aliasing issue caused by MemCpyOptimizer
by performing the following changes:
- Added requirement that the callee does not capture the src pointer for
  the transformation to apply.
- Updated test cases by adding nocapture attributes where applicable

See http://lists.cs.uiuc.edu/pipermail/llvmdev/2014-June/073819.html
for some more information. My main concern is performance regressions
but I haven't been able to get any benchmark results.

Best regards
David
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pr18304.patch
Type: application/octet-stream
Size: 3908 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20140620/00f121be/attachment.obj>


More information about the llvm-commits mailing list