[llvm] r280396 - [lib/LTO] Simplify a bit. NFCI.
Davide Italiano via llvm-commits
llvm-commits at lists.llvm.org
Thu Sep 1 11:34:47 PDT 2016
Author: davide
Date: Thu Sep 1 13:34:47 2016
New Revision: 280396
URL: http://llvm.org/viewvc/llvm-project?rev=280396&view=rev
Log:
[lib/LTO] Simplify a bit. NFCI.
Modified:
llvm/trunk/lib/LTO/LTOBackend.cpp
Modified: llvm/trunk/lib/LTO/LTOBackend.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/LTO/LTOBackend.cpp?rev=280396&r1=280395&r2=280396&view=diff
==============================================================================
--- llvm/trunk/lib/LTO/LTOBackend.cpp (original)
+++ llvm/trunk/lib/LTO/LTOBackend.cpp Thu Sep 1 13:34:47 2016
@@ -140,10 +140,7 @@ bool opt(Config &C, TargetMachine *TM, u
bool IsThinLto) {
M.setDataLayout(TM->createDataLayout());
runOldPMPasses(C, M, TM, IsThinLto);
- if (C.PostOptModuleHook && !C.PostOptModuleHook(Task, M))
- return false;
-
- return true;
+ return !C.PostOptModuleHook || C.PostOptModuleHook(Task, M);
}
/// Monolithic LTO does not support caching (yet), this is a convenient wrapper
More information about the llvm-commits
mailing list