aboutsummaryrefslogtreecommitdiff
path: root/llvm/unittests/Support/ProgramTest.cpp
diff options
context:
space:
mode:
authorXin Tong <trent.xin.tong@gmail.com>2017-06-06 02:34:41 +0000
committerXin Tong <trent.xin.tong@gmail.com>2017-06-06 02:34:41 +0000
commit9d6f08a8d40bf3222ea81189e85635bc46e90495 (patch)
tree3fb58f270020cbe73a89beb7c09873d5fb0c9538 /llvm/unittests/Support/ProgramTest.cpp
parentd7120758bac652e67c5b5415eb4ec11465dc6c11 (diff)
downloadllvm-9d6f08a8d40bf3222ea81189e85635bc46e90495.zip
llvm-9d6f08a8d40bf3222ea81189e85635bc46e90495.tar.gz
llvm-9d6f08a8d40bf3222ea81189e85635bc46e90495.tar.bz2
Add a dominanance check interface that uses caching for instructions within same basic block.
Summary: This problem stems from the fact that instructions are allocated using new in LLVM, i.e. there is no relationship that can be derived by just looking at the pointer value. This interface dispatches to appropriate dominance check given 2 instructions, i.e. in case the instructions are in the same basic block, ordered basicblock (with instruction numbering and caching) are used. Otherwise, dominator tree is used. This is a preparation patch for https://reviews.llvm.org/D32720 Reviewers: dberlin, hfinkel, davide Subscribers: davide, mgorny, llvm-commits Differential Revision: https://reviews.llvm.org/D33380 llvm-svn: 304764
Diffstat (limited to 'llvm/unittests/Support/ProgramTest.cpp')
0 files changed, 0 insertions, 0 deletions