[PATCH] D136201: [InstCombine] Handle PHI nodes when eliminating constant memcpy
Anshil Gandhi via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Nov 8 10:48:07 PST 2022
gandhi21299 updated this revision to Diff 474046.
gandhi21299 marked an inline comment as done.
gandhi21299 added a comment.
- In case one of the incoming values being replaced belongs to a different address space with respect to other incoming values, cast them to the target address space.
- Included tests suggested by @nikic
- Minor nits suggested by reviewers
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D136201/new/
https://reviews.llvm.org/D136201
Files:
llvm/lib/Transforms/InstCombine/InstCombineLoadStoreAlloca.cpp
llvm/test/Transforms/InstCombine/replace-alloca-phi-backup.ll
llvm/test/Transforms/InstCombine/replace-alloca-phi.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D136201.474046.patch
Type: text/x-patch
Size: 20863 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20221108/f5aff977/attachment.bin>
More information about the llvm-commits
mailing list