summaryrefslogtreecommitdiffstats
path: root/llvm/test
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2009-03-05 18:12:02 +0000
committerDevang Patel <dpatel@apple.com>2009-03-05 18:12:02 +0000
commit709d6ac46dc04b292e53f6421ff736aabf9ea8d6 (patch)
tree92f8ba40dc8c5f6b617495d144de557bf65e255a /llvm/test
parentfa3d77bc2cec9175029551f9a1f95c84637054d0 (diff)
downloadbcm5719-llvm-709d6ac46dc04b292e53f6421ff736aabf9ea8d6.tar.gz
bcm5719-llvm-709d6ac46dc04b292e53f6421ff736aabf9ea8d6.zip
GlobalOpt only process non constant local GVs while optimizing global vars.
If non constant local GV named A is used by a constant local GV named B (e.g. llvm.dbg.variable) and B is not used by anyone else then eliminate A as well as B. In other words, debug info should not interfere in removal of unused GV. --This life, and those below, will be ignored-- M test/Transforms/GlobalOpt/2009-03-03-dbg.ll M lib/Transforms/IPO/GlobalOpt.cpp llvm-svn: 66167
Diffstat (limited to 'llvm/test')
-rw-r--r--llvm/test/Transforms/GlobalOpt/2009-03-03-dbg.ll1
1 files changed, 0 insertions, 1 deletions
diff --git a/llvm/test/Transforms/GlobalOpt/2009-03-03-dbg.ll b/llvm/test/Transforms/GlobalOpt/2009-03-03-dbg.ll
index 1996f621912..13d2f45d7a5 100644
--- a/llvm/test/Transforms/GlobalOpt/2009-03-03-dbg.ll
+++ b/llvm/test/Transforms/GlobalOpt/2009-03-03-dbg.ll
@@ -1,5 +1,4 @@
; RUN: llvm-as < %s | opt -globalopt | llvm-dis | not grep global_variable42
-; XFAIL: *
%llvm.dbg.anchor.type = type { i32, i32 }
%llvm.dbg.basictype.type = type { i32, { }*, i8*, { }*, i32, i64, i64, i64, i32, i32 }
OpenPOWER on IntegriCloud