[PATCH] D136201: [InstCombine] Handle PHI nodes when eliminating constant memcpy
Anshil Gandhi via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Nov 11 22:28:39 PST 2022
gandhi21299 updated this revision to Diff 474918.
gandhi21299 added a comment.
- When walking over a memtransfer inst in isOnlyCopiedFromConstantMemory(..), check if the destination of the instruction is a PHI node and return false if so.
- Added the @nikic 's test and another loop test
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.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D136201.474918.patch
Type: text/x-patch
Size: 14053 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20221112/bed2b916/attachment.bin>
More information about the llvm-commits
mailing list