[llvm] r373456 - NFC: directly return when CommonExitBlock != Succ
Aditya Kumar via llvm-commits
llvm-commits at lists.llvm.org
Wed Oct 2 05:15:17 PDT 2019
Author: hiraditya
Date: Wed Oct 2 05:15:17 2019
New Revision: 373456
URL: http://llvm.org/viewvc/llvm-project?rev=373456&view=rev
Log:
NFC: directly return when CommonExitBlock != Succ
Subscribers: llvm-commits
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D68330
Modified:
llvm/trunk/lib/Transforms/Utils/CodeExtractor.cpp
Modified: llvm/trunk/lib/Transforms/Utils/CodeExtractor.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Utils/CodeExtractor.cpp?rev=373456&r1=373455&r2=373456&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Utils/CodeExtractor.cpp (original)
+++ llvm/trunk/lib/Transforms/Utils/CodeExtractor.cpp Wed Oct 2 05:15:17 2019
@@ -293,10 +293,8 @@ static BasicBlock *getCommonExitBlock(co
CommonExitBlock = Succ;
continue;
}
- if (CommonExitBlock == Succ)
- continue;
-
- return true;
+ if (CommonExitBlock != Succ)
+ return true;
}
return false;
};
More information about the llvm-commits
mailing list