[MemDepAnalysis] Allow caller to pass in an OrderedBasicBlock.
authorFlorian Hahn <flo@fhahn.com>
Thu, 28 Mar 2019 19:17:31 +0000 (19:17 +0000)
committerFlorian Hahn <flo@fhahn.com>
Thu, 28 Mar 2019 19:17:31 +0000 (19:17 +0000)
commit6c3024368c3abc625420040cc0beb29b8fef929e
tree4b69f3fcdad63c2088de0577fe20ee5baafff3ef
parent471171c4c94ced4b0421049d6949c13bdce256f7
[MemDepAnalysis] Allow caller to pass in an OrderedBasicBlock.

If the caller can preserve the OBB, we can avoid recomputing the order
for each getDependency call.

Reviewers: efriedma, rnk, hfinkel

Reviewed By: rnk

Differential Revision: https://reviews.llvm.org/D59788

llvm-svn: 357206
llvm/include/llvm/Analysis/MemoryDependenceAnalysis.h
llvm/lib/Analysis/MemoryDependenceAnalysis.cpp