[PATCH] D67307: [MemorySSA] Do not create memoryaccesses for debug info intrinsics.
Alina Sbirlea via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Sep 6 16:32:08 PDT 2019
asbirlea updated this revision to Diff 219201.
asbirlea marked an inline comment as done.
asbirlea added a comment.
Address comment.
Repository:
rL LLVM
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D67307/new/
https://reviews.llvm.org/D67307
Files:
lib/Analysis/MemorySSA.cpp
Index: lib/Analysis/MemorySSA.cpp
===================================================================
--- lib/Analysis/MemorySSA.cpp
+++ lib/Analysis/MemorySSA.cpp
@@ -284,6 +284,10 @@
case Intrinsic::invariant_start:
case Intrinsic::invariant_end:
case Intrinsic::assume:
+ case Intrinsic::dbg_addr:
+ case Intrinsic::dbg_declare:
+ case Intrinsic::dbg_label:
+ case Intrinsic::dbg_value:
return {false, NoAlias};
default:
break;
@@ -1729,7 +1733,8 @@
// FIXME: Replace this special casing with a more accurate modelling of
// assume's control dependency.
if (IntrinsicInst *II = dyn_cast<IntrinsicInst>(I))
- if (II->getIntrinsicID() == Intrinsic::assume)
+ if (II->getIntrinsicID() == Intrinsic::assume ||
+ isa<DbgInfoIntrinsic>(II))
return nullptr;
bool Def, Use;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D67307.219201.patch
Type: text/x-patch
Size: 849 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190906/5cf5ce7b/attachment.bin>
More information about the llvm-commits
mailing list