Skip to content

Commit c36f31c

Browse files
committed
[PGO] remove unintentional code in early commit
Remove unintentional code in commit 54e03d [PGO] Verify BFI counts after loading profile data.
1 parent d7eba20 commit c36f31c

File tree

2 files changed

+0
-12
lines changed

2 files changed

+0
-12
lines changed

clang/lib/CodeGen/CGCall.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1943,11 +1943,6 @@ void CodeGenModule::ConstructAttributeList(
19431943
FuncAttrs.addAttribute(llvm::Attribute::NoReturn);
19441944
if (TargetDecl->hasAttr<ColdAttr>())
19451945
FuncAttrs.addAttribute(llvm::Attribute::Cold);
1946-
if (TargetDecl->hasAttr<HotAttr>()) {
1947-
// xur
1948-
fprintf(stderr, "hihi 2\n");
1949-
// FuncAttrs.addAttribute(llvm::Attribute::Hot);
1950-
}
19511946
if (TargetDecl->hasAttr<NoDuplicateAttr>())
19521947
FuncAttrs.addAttribute(llvm::Attribute::NoDuplicate);
19531948
if (TargetDecl->hasAttr<ConvergentAttr>())

clang/lib/CodeGen/CodeGenModule.cpp

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1744,13 +1744,6 @@ void CodeGenModule::SetLLVMFunctionAttributesForDefinition(const Decl *D,
17441744
B.addAttribute(llvm::Attribute::OptimizeForSize);
17451745
B.addAttribute(llvm::Attribute::Cold);
17461746
}
1747-
if (D->hasAttr<HotAttr>()) {
1748-
if (!ShouldAddOptNone)
1749-
B.addAttribute(llvm::Attribute::OptimizeForSize);
1750-
// xur
1751-
// B.addAttribute(llvm::Attribute::Hot);
1752-
fprintf(stderr, "hihi 1\n");
1753-
}
17541747

17551748
if (D->hasAttr<MinSizeAttr>())
17561749
B.addAttribute(llvm::Attribute::MinSize);

0 commit comments

Comments
 (0)