diff options
-rw-r--r-- | llvm/lib/Transforms/Utils/PredicateInfo.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/llvm/lib/Transforms/Utils/PredicateInfo.cpp b/llvm/lib/Transforms/Utils/PredicateInfo.cpp index aacbd59ca49..8877aeafecd 100644 --- a/llvm/lib/Transforms/Utils/PredicateInfo.cpp +++ b/llvm/lib/Transforms/Utils/PredicateInfo.cpp @@ -210,11 +210,9 @@ struct ValueDFS_Compare { auto LookupResult = OBBMap.find(BB); if (LookupResult != OBBMap.end()) return LookupResult->second->dominates(AInst, BInst); - else { - auto Result = OBBMap.insert({BB, make_unique<OrderedBasicBlock>(BB)}); - return Result.first->second->dominates(AInst, BInst); - } - return std::tie(ADef, A.U) < std::tie(BDef, B.U); + + auto Result = OBBMap.insert({BB, make_unique<OrderedBasicBlock>(BB)}); + return Result.first->second->dominates(AInst, BInst); } }; |