commit | f231c07228deb75b6cd5ae7c9c057bc8303c6998 | [log] [tgz] |
---|---|---|
author | Chris Lattner <sabre@nondot.org> | Mon Mar 09 05:52:15 2009 +0000 |
committer | Chris Lattner <sabre@nondot.org> | Mon Mar 09 05:52:15 2009 +0000 |
tree | 7e6fdb7e1eff41dc8add05c95a963a3da673e3c6 | |
parent | 319e63234a32b502919874042712cd0457876d59 [diff] |
Make the code generator rip of dead constant expr uses before deciding whether a global is dead or not. This should fix PR3749 - linker adds spurious use to appending globals. I can't reasonably add a testcase for this, because the bc writer/reader strip dead constant users. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@66404 91177308-0d34-0410-b5e6-96231b3b80d8