projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
35ee1c9
)
As suggested by Nick Lewycky, ignore debugging intrinsics when trying to decide wheth...
author
Anders Carlsson
<andersca@mac.com>
Mon, 21 Mar 2011 02:42:27 +0000
(
02:42
+0000)
committer
Anders Carlsson
<andersca@mac.com>
Mon, 21 Mar 2011 02:42:27 +0000
(
02:42
+0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@127985
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Transforms/IPO/GlobalOpt.cpp
patch
|
blob
|
history
diff --git
a/lib/Transforms/IPO/GlobalOpt.cpp
b/lib/Transforms/IPO/GlobalOpt.cpp
index 60ede4f6d53654fc8c4920080f7a8143ea3eedb1..d8212e8894f32ed6f461a430a2cf973e19a31080 100644
(file)
--- a/
lib/Transforms/IPO/GlobalOpt.cpp
+++ b/
lib/Transforms/IPO/GlobalOpt.cpp
@@
-2742,6
+2742,13
@@
static bool cxxDtorIsEmpty(const Function &Fn,
if (!CalledFn)
return false;
+ if (unsigned IntrinsicID = CalledFn->getIntrinsicID()) {
+ // Ignore debug intrinsics.
+ if (IntrinsicID == llvm::Intrinsic::dbg_declare ||
+ IntrinsicID == llvm::Intrinsic::dbg_value)
+ continue;
+ }
+
// Don't treat recursive functions as empty.
if (!CalledFunctions.insert(CalledFn))
return false;