Add forms of dominates and isReachableFromEntry that accept a Use
authorDan Gohman <gohman@apple.com>
Thu, 12 Apr 2012 23:31:46 +0000 (23:31 +0000)
committerDan Gohman <gohman@apple.com>
Thu, 12 Apr 2012 23:31:46 +0000 (23:31 +0000)
commit558ece284cef9d42a96577f3943cb3efee8904e0
tree361530840f20c8339710aea15f6f90e7c4a2e71e
parent2a7d3a93735f97c2a4cabcc08a88d702c28cb0d4
Add forms of dominates and isReachableFromEntry that accept a Use
directly instead of a user Instruction. This allows them to test
whether a def dominates a particular operand if the user instruction
is a PHI.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@154631 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Analysis/Dominators.h
lib/VMCore/Dominators.cpp