[llvm] r306701 - Remove unneeded else from OrderedInstructions::dominates.
Daniel Berlin via llvm-commits
llvm-commits at lists.llvm.org
Thu Jun 29 10:01:03 PDT 2017
Author: dannyb
Date: Thu Jun 29 10:01:03 2017
New Revision: 306701
URL: http://llvm.org/viewvc/llvm-project?rev=306701&view=rev
Log:
Remove unneeded else from OrderedInstructions::dominates.
Modified:
llvm/trunk/lib/Transforms/Utils/OrderedInstructions.cpp
Modified: llvm/trunk/lib/Transforms/Utils/OrderedInstructions.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Utils/OrderedInstructions.cpp?rev=306701&r1=306700&r2=306701&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Utils/OrderedInstructions.cpp (original)
+++ llvm/trunk/lib/Transforms/Utils/OrderedInstructions.cpp Thu Jun 29 10:01:03 2017
@@ -27,7 +27,6 @@ bool OrderedInstructions::dominates(cons
if (OBB == OBBMap.end())
OBB = OBBMap.insert({IBB, make_unique<OrderedBasicBlock>(IBB)}).first;
return OBB->second->dominates(InstA, InstB);
- } else {
- return DT->dominates(InstA->getParent(), InstB->getParent());
}
+ return DT->dominates(InstA->getParent(), InstB->getParent());
}
More information about the llvm-commits
mailing list