[PATCH] D136752: Take memset_inline into account in analyzeLoadFromClobberingMemInst
Guillaume Chatelet via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Oct 26 02:36:28 PDT 2022
gchatelet created this revision.
gchatelet added a reviewer: courbet.
Herald added a subscriber: hiraditya.
Herald added a project: All.
gchatelet requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
This appeared in https://reviews.llvm.org/D126903#3884061
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D136752
Files:
llvm/lib/Transforms/Utils/VNCoercion.cpp
Index: llvm/lib/Transforms/Utils/VNCoercion.cpp
===================================================================
--- llvm/lib/Transforms/Utils/VNCoercion.cpp
+++ llvm/lib/Transforms/Utils/VNCoercion.cpp
@@ -356,7 +356,7 @@
// If this is memset, we just need to see if the offset is valid in the size
// of the memset..
- if (MI->getIntrinsicID() == Intrinsic::memset) {
+ if (isa<MemSetInst>(MI)) {
if (DL.isNonIntegralPointerType(LoadTy->getScalarType())) {
auto *CI = dyn_cast<ConstantInt>(cast<MemSetInst>(MI)->getValue());
if (!CI || !CI->isZero())
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D136752.470757.patch
Type: text/x-patch
Size: 585 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20221026/89ba5fb8/attachment.bin>
More information about the llvm-commits
mailing list