From c36f31c4db065e987160a776749f5da81efc24c5 Mon Sep 17 00:00:00 2001 From: Rong Xu Date: Mon, 14 Dec 2020 18:41:09 -0800 Subject: [PGO] remove unintentional code in early commit Remove unintentional code in commit 54e03d [PGO] Verify BFI counts after loading profile data. --- clang/lib/CodeGen/CodeGenModule.cpp | 7 ------- 1 file changed, 7 deletions(-) (limited to 'clang/lib/CodeGen/CodeGenModule.cpp') diff --git a/clang/lib/CodeGen/CodeGenModule.cpp b/clang/lib/CodeGen/CodeGenModule.cpp index dec0cba84343..0bb9c91f2434 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()) { - if (!ShouldAddOptNone) - B.addAttribute(llvm::Attribute::OptimizeForSize); - // xur - // B.addAttribute(llvm::Attribute::Hot); - fprintf(stderr, "hihi 1\n"); - } if (D->hasAttr()) B.addAttribute(llvm::Attribute::MinSize); -- cgit v1.2.3