aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CodeGenModule.cpp
diff options
context:
space:
mode:
authorRong Xu <xur@google.com>2020-12-14 18:41:09 -0800
committerRong Xu <xur@google.com>2020-12-14 18:41:49 -0800
commitc36f31c4db065e987160a776749f5da81efc24c5 (patch)
tree53f9df846ffeb0fbb6a3fb7f4357ff8133bc5676 /clang/lib/CodeGen/CodeGenModule.cpp
parentd7eba2005267aa4a8f46f73f208c7cc23e6c6a1a (diff)
downloadllvm-c36f31c4db065e987160a776749f5da81efc24c5.zip
llvm-c36f31c4db065e987160a776749f5da81efc24c5.tar.gz
llvm-c36f31c4db065e987160a776749f5da81efc24c5.tar.bz2
[PGO] remove unintentional code in early commit
Remove unintentional code in commit 54e03d [PGO] Verify BFI counts after loading profile data.
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
-rw-r--r--clang/lib/CodeGen/CodeGenModule.cpp7
1 files changed, 0 insertions, 7 deletions
diff --git a/clang/lib/CodeGen/CodeGenModule.cpp b/clang/lib/CodeGen/CodeGenModule.cpp
index dec0cba..0bb9c91 100644
--- a/clang/lib/CodeGen/CodeGenModule.cpp
+++ b/clang/lib/CodeGen/CodeGenModule.cpp
@@ -1744,13 +1744,6 @@ void CodeGenModule::SetLLVMFunctionAttributesForDefinition(const Decl *D,
B.addAttribute(llvm::Attribute::OptimizeForSize);
B.addAttribute(llvm::Attribute::Cold);
}
- if (D->hasAttr<HotAttr>()) {
- if (!ShouldAddOptNone)
- B.addAttribute(llvm::Attribute::OptimizeForSize);
- // xur
- // B.addAttribute(llvm::Attribute::Hot);
- fprintf(stderr, "hihi 1\n");
- }
if (D->hasAttr<MinSizeAttr>())
B.addAttribute(llvm::Attribute::MinSize);