diff options
author | Devang Patel <dpatel@apple.com> | 2009-03-05 18:12:02 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2009-03-05 18:12:02 +0000 |
commit | 504960067233f271884c23869e81272918ad2883 (patch) | |
tree | 7c72cecfbc4604ab73f4ba15489530102a4078d5 /test/Transforms/GlobalOpt | |
parent | 30a31ebf7ffa369e4b5636730a3ecfaa51e7e1f8 (diff) | |
download | llvm-504960067233f271884c23869e81272918ad2883.tar.gz llvm-504960067233f271884c23869e81272918ad2883.tar.bz2 llvm-504960067233f271884c23869e81272918ad2883.tar.xz |
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
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@66167 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Transforms/GlobalOpt')
-rw-r--r-- | test/Transforms/GlobalOpt/2009-03-03-dbg.ll | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/test/Transforms/GlobalOpt/2009-03-03-dbg.ll b/test/Transforms/GlobalOpt/2009-03-03-dbg.ll index 1996f62191..13d2f45d7a 100644 --- a/test/Transforms/GlobalOpt/2009-03-03-dbg.ll +++ b/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 } |