MergeFunctions, doSanityCheck: fixed body comments.

llvm-svn: 211443
This commit is contained in:
Stepan Dyatkovskiy 2014-06-21 19:07:51 +00:00
parent a77f3d8587
commit 0b58801b69
1 changed files with 5 additions and 7 deletions

View File

@ -1225,16 +1225,14 @@ bool MergeFunctions::doSanityCheck(std::vector<WeakVH> &Worklist) {
bool Transitive = true;
// F1 > F2, F2 > F3 => F1 > F3
if (Res1 != 0 && Res1 == Res4) {
// F1 > F2, F2 > F3 => F1 > F3
Transitive = Res3 == Res1;
} else
} else if (Res3 != 0 && Res3 == -Res4) {
// F1 > F3, F3 > F2 => F1 > F2
if (Res3 != 0 && Res3 == -Res4) {
Transitive = Res3 == Res1;
} else
} else if (Res4 != 0 && -Res3 == Res4) {
// F2 > F3, F3 > F1 => F2 > F1
if (Res4 != 0 && -Res3 == Res4) {
Transitive = Res4 == -Res1;
}