[llvm] 31c0b87 - Fix clang-ppc64le-rhel buildbot build error
    Rong Xu via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Thu Dec 17 19:15:39 PST 2020
    
    
  
Author: Rong Xu
Date: 2020-12-17T19:14:43-08:00
New Revision: 31c0b8700b4f531b2353fbb0e72d6934f65814f8
URL: https://github.com/llvm/llvm-project/commit/31c0b8700b4f531b2353fbb0e72d6934f65814f8
DIFF: https://github.com/llvm/llvm-project/commit/31c0b8700b4f531b2353fbb0e72d6934f65814f8.diff
LOG: Fix clang-ppc64le-rhel buildbot build error
ix buildbot build error due to
commit 3733463d: [IR][PGO] Add hot func attribute and use hot/cold
attribute in func section
Added: 
    
Modified: 
    llvm/lib/Transforms/Utils/CodeExtractor.cpp
Removed: 
    
################################################################################
diff  --git a/llvm/lib/Transforms/Utils/CodeExtractor.cpp b/llvm/lib/Transforms/Utils/CodeExtractor.cpp
index 91297b8dea19..e30812935426 100644
--- a/llvm/lib/Transforms/Utils/CodeExtractor.cpp
+++ b/llvm/lib/Transforms/Utils/CodeExtractor.cpp
@@ -943,6 +943,7 @@ Function *CodeExtractor::constructFunction(const ValueSet &inputs,
       // Those attributes should be safe to propagate to the extracted function.
       case Attribute::AlwaysInline:
       case Attribute::Cold:
+      case Attribute::Hot:
       case Attribute::NoRecurse:
       case Attribute::InlineHint:
       case Attribute::MinSize:
        
    
    
More information about the llvm-commits
mailing list