summaryrefslogtreecommitdiffstats
path: root/llvm/lib/VMCore/User.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Reinstate r133513 (reverted in r133700) with an additional fix for aJay Foad2011-06-231-2/+4
| | | | | | -Wshorten-64-to-32 warning in Instructions.h. llvm-svn: 133708
* Revert r133513:Eric Christopher2011-06-231-4/+2
| | | | | | | | | "Reinstate r133435 and r133449 (reverted in r133499) now that the clang self-hosted build failure has been fixed (r133512)." Due to some additional warnings. llvm-svn: 133700
* Reinstate r133435 and r133449 (reverted in r133499) now that the clangJay Foad2011-06-211-2/+4
| | | | | | self-hosted build failure has been fixed (r133512). llvm-svn: 133513
* Revert r133435 and r133449 to appease buildbots.Chad Rosier2011-06-211-4/+2
| | | | llvm-svn: 133499
* Change how PHINodes store their operands.Jay Foad2011-06-201-2/+4
| | | | | | | | | | | | | | | | | | | Change PHINodes to store simple pointers to their incoming basic blocks, instead of full-blown Uses. Note that this loses an optimization in SplitCriticalEdge(), because we can no longer walk the use list of a BasicBlock to find phi nodes. See the comment I removed starting "However, the foreach loop is slow for blocks with lots of predecessors". Extend replaceAllUsesWith() on a BasicBlock to also update any phi nodes in the block's successors. This mimics what would have happened when PHINodes were proper Users of their incoming blocks. (Note that this only works if OldBB->replaceAllUsesWith(NewBB) is called when OldBB still has a terminator instruction, so it still has some successors.) llvm-svn: 133435
* Remove the AugmentedUse struct.Jay Foad2011-06-201-6/+2
| | | | | | | | I don't think the AugmentedUse struct buys us much, either in correctness or in ease of use. Ditch it, and simplify Use::getUser() and User::allocHungoffUses(). llvm-svn: 133433
* Simplify User::operator delete().Jay Foad2011-01-261-10/+3
| | | | llvm-svn: 124330
* Remove useless Tag enumeration.Jay Foad2011-01-171-2/+3
| | | | llvm-svn: 123623
* Move the implementation of the User class into a new source file,Jay Foad2011-01-161-0/+87
User.cpp. llvm-svn: 123575
OpenPOWER on IntegriCloud