Simplify the logic of getting hold of a PHI predecessor block.
authorGabor Greif <ggreif@gmail.com>
Fri, 23 Jan 2009 19:40:15 +0000 (19:40 +0000)
committerGabor Greif <ggreif@gmail.com>
Fri, 23 Jan 2009 19:40:15 +0000 (19:40 +0000)
commita36791da41cf4f635e50077b290676b873836bda
tree93f751d2adbba6056d4f2e16b04288a5864f238d
parent60789e419e04c260e36af9a1add5ad316313e490
Simplify the logic of getting hold of a PHI predecessor block.
There is now a direct way from value-use-iterator to incoming block in PHINode's API.
This way we avoid the iterator->index->iterator trip, and especially the costly
getOperandNo() invocation. Additionally there is now an assertion that the iterator
really refers to one of the PHI's Uses.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@62869 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Analysis/LoopInfo.h
include/llvm/Instructions.h
lib/Transforms/IPO/GlobalOpt.cpp
lib/Transforms/Scalar/CodeGenPrepare.cpp
lib/Transforms/Utils/LCSSA.cpp
lib/VMCore/Instruction.cpp