]> granicus.if.org Git - llvm/commit
Move the special Phi logic for hung off uses in to User::allocHungOffUses. NFC.
authorPete Cooper <peter_cooper@apple.com>
Wed, 10 Jun 2015 22:38:30 +0000 (22:38 +0000)
committerPete Cooper <peter_cooper@apple.com>
Wed, 10 Jun 2015 22:38:30 +0000 (22:38 +0000)
commite0e42bb51fe60a9663833576b216a5a0b4048fff
tree209124d3da0b006c7a62d43fc8e4986bc107ed63
parent6e5bbb57e4bd70688e78000d92712496be7105f6
Move the special Phi logic for hung off uses in to User::allocHungOffUses. NFC.

PhiNode's need to allocate space for an array of Use[N] and then BasicBlock*[N].

They had their own allocHungOffUses to handle all of this.  This moves the logic
in to User::allocHungOffUses and PhiNode passes in a bool to say to allocate
the BB* space too.

Reviewed by Duncan Exon Smith.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@239489 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/IR/Instructions.h
include/llvm/IR/User.h
lib/IR/Instructions.cpp
lib/IR/User.cpp