summaryrefslogtreecommitdiffstats
path: root/llvm/test/Transforms/GlobalOpt/cleanup-pointer-root-users.ll
Commit message (Collapse)AuthorAgeFilesLines
* Add testcases for GlobalOpt changes in r160693 and r160757.Nick Lewycky2012-07-291-3/+33
| | | | llvm-svn: 160925
* Teach globalopt to not nuke all stores to globals. Keep them around of theyNick Lewycky2012-07-241-0/+19
| | | | | | | | | might be deliberate "one time" leaks, so that leak checkers can find them. This is a reapply of r160602 with the fix that this time I'm committing the code I thought I was committing last time; the I->eraseFromParent() goes *after* the break out of the loop. llvm-svn: 160664
* Revert r160602.Nick Lewycky2012-07-211-20/+0
| | | | llvm-svn: 160603
* Teach globalopt to play nice with leak checkers. This is a reapplication ofNick Lewycky2012-07-211-0/+20
| | | | | | | | r160529 that was subsequently reverted. The fix was to not call GV->eraseFromParent() right before the caller does the same. The existing testcases already caught this bug if run under valgrind. llvm-svn: 160602
* Revert r160529 due to crashes.Nick Lewycky2012-07-191-20/+0
| | | | llvm-svn: 160532
* Don't wipe out global variables that are probably storing pointers to heapNick Lewycky2012-07-191-0/+20
memory. This makes clang play nice with leak checkers. llvm-svn: 160529
OpenPOWER on IntegriCloud