[PATCH] D37939: [Mem2Reg] Also handle memcpy

Keno Fischer via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Sep 17 19:30:33 PDT 2017


loladiro updated this revision to Diff 115591.
loladiro added a comment.

Fix a small bug and also look through a single level of bitcasts.
Since IRBuilder automatically inserts bitcasts to i8*, it seems
prudent to handle that case.


https://reviews.llvm.org/D37939

Files:
  lib/Transforms/Utils/PromoteMemoryToRegister.cpp
  test/Transforms/Mem2Reg/memcpy.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D37939.115591.patch
Type: text/x-patch
Size: 14215 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170918/c4d47b3e/attachment.bin>


More information about the llvm-commits mailing list