[llvm] 798b0fd - [NPM] Fix typo inisLTOPreLink for loop rotate

Jingu Kang via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 7 07:09:51 PDT 2021


Author: Jingu Kang
Date: 2021-04-07T15:08:37+01:00
New Revision: 798b0fd36b48f55fa9eb7c2b449179d9af2f9b63

URL: https://github.com/llvm/llvm-project/commit/798b0fd36b48f55fa9eb7c2b449179d9af2f9b63
DIFF: https://github.com/llvm/llvm-project/commit/798b0fd36b48f55fa9eb7c2b449179d9af2f9b63.diff

LOG: [NPM] Fix typo inisLTOPreLink for loop rotate

Differential Revision: https://reviews.llvm.org/D100033

Added: 
    

Modified: 
    llvm/lib/Passes/PassBuilder.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Passes/PassBuilder.cpp b/llvm/lib/Passes/PassBuilder.cpp
index 5a22852157695..6307e468e7017 100644
--- a/llvm/lib/Passes/PassBuilder.cpp
+++ b/llvm/lib/Passes/PassBuilder.cpp
@@ -519,7 +519,7 @@ static void addAnnotationRemarksPass(ModulePassManager &MPM) {
 // Helper to check if the current compilation phase is preparing for LTO
 static bool isLTOPreLink(ThinOrFullLTOPhase Phase) {
   return Phase == ThinOrFullLTOPhase::ThinLTOPreLink ||
-         Phase == ThinOrFullLTOPhase::ThinLTOPreLink;
+         Phase == ThinOrFullLTOPhase::FullLTOPreLink;
 }
 
 // TODO: Investigate the cost/benefit of tail call elimination on debugging.


        


More information about the llvm-commits mailing list