llvm-6502/lib/Transforms/IPO
Devang Patel 5049600672 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
2009-03-05 18:12:02 +00:00
..
ArgumentPromotion.cpp Add explicit keywords. 2009-02-18 16:37:45 +00:00
CMakeLists.txt Rename AddReadAttrs to FunctionAttrs, and teach it how 2008-12-31 16:14:43 +00:00
ConstantMerge.cpp Add the private linkage. 2009-01-15 20:18:42 +00:00
DeadArgumentElimination.cpp use CallSite::isCalle instead of slow getOperandNo 2009-01-23 21:17:04 +00:00
DeadTypeElimination.cpp Tidy up several unbeseeming casts from pointer to intptr_t. 2008-09-04 17:05:41 +00:00
ExtractGV.cpp Add the private linkage. 2009-01-15 20:18:42 +00:00
FunctionAttrs.cpp Ignore debug info intrinsics. 2009-03-03 00:28:44 +00:00
GlobalDCE.cpp If an alias is dead and so is its aliasee, then globaldce would 2009-02-17 23:05:26 +00:00
GlobalOpt.cpp GlobalOpt only process non constant local GVs while optimizing global vars. 2009-03-05 18:12:02 +00:00
IndMemRemoval.cpp The function that does nothing but call malloc is noalias return. 2009-01-25 07:59:57 +00:00
InlineAlways.cpp Adjustments to last patch based on review. 2009-01-09 01:30:11 +00:00
Inliner.cpp Add the private linkage. 2009-01-15 20:18:42 +00:00
InlineSimple.cpp Adjustments to last patch based on review. 2009-01-09 01:30:11 +00:00
Internalize.cpp Rename getAnalysisToUpdate to getAnalysisIfAvailable. 2009-01-28 13:14:17 +00:00
IPConstantPropagation.cpp introduce a useful abstraction to find out if a Use is in the call position of an instruction 2009-01-22 21:35:57 +00:00
LoopExtractor.cpp Tidy up several unbeseeming casts from pointer to intptr_t. 2008-09-04 17:05:41 +00:00
LowerSetJmp.cpp Large mechanical patch. 2008-09-25 21:00:45 +00:00
Makefile Removed trailing whitespace from Makefiles. 2009-01-09 16:44:42 +00:00
MergeFunctions.cpp Add the private linkage. 2009-01-15 20:18:42 +00:00
PartialSpecialization.cpp add a period at the end of the comment, ignoring the fact that the comment would be hard pressed to be considered a sentence, but if it makes Bill happy... 2008-11-03 19:29:29 +00:00
PruneEH.cpp Speed up these passes when the callgraph has 2008-09-29 14:59:04 +00:00
RaiseAllocations.cpp Tidy up several unbeseeming casts from pointer to intptr_t. 2008-09-04 17:05:41 +00:00
StripDeadPrototypes.cpp Tidy up several unbeseeming casts from pointer to intptr_t. 2008-09-04 17:05:41 +00:00
StripSymbols.cpp Recursively remove dead argument while removing llvm.dbg.declare intrinsic. 2009-03-03 21:31:02 +00:00
StructRetPromotion.cpp introduce a useful abstraction to find out if a Use is in the call position of an instruction 2009-01-22 21:35:57 +00:00