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 /lib/Transforms/Utils/SimplifyCFG.cpp | |
parent | 30a31ebf7ffa369e4b5636730a3ecfaa51e7e1f8 (diff) |
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 'lib/Transforms/Utils/SimplifyCFG.cpp')
0 files changed, 0 insertions, 0 deletions