From 1eb4ec6a2eedec4e69b664540fa1a14d5bf899b4 Mon Sep 17 00:00:00 2001 From: Xinliang David Li Date: Thu, 2 Feb 2017 19:18:56 +0000 Subject: [PGO] make graph view internal options available for all builds Differential Revision: https://reviews.llvm.org/D29259 llvm-svn: 293921 --- llvm/lib/CodeGen/MachineBlockPlacement.cpp | 4 ---- 1 file changed, 4 deletions(-) (limited to 'llvm/lib/CodeGen/MachineBlockPlacement.cpp') diff --git a/llvm/lib/CodeGen/MachineBlockPlacement.cpp b/llvm/lib/CodeGen/MachineBlockPlacement.cpp index 780be9c1813..8128efbaf2d 100644 --- a/llvm/lib/CodeGen/MachineBlockPlacement.cpp +++ b/llvm/lib/CodeGen/MachineBlockPlacement.cpp @@ -160,10 +160,8 @@ static cl::opt TailDupPlacementPenalty( extern cl::opt StaticLikelyProb; extern cl::opt ProfileLikelyProb; -#ifndef NDEBUG extern cl::opt ViewBlockLayoutWithBFI; extern cl::opt ViewBlockFreqFuncName; -#endif namespace { class BlockChain; @@ -2365,13 +2363,11 @@ bool MachineBlockPlacement::runOnMachineFunction(MachineFunction &MF) { MBI->setAlignment(AlignAllNonFallThruBlocks); } } -#ifndef NDEBUG if (ViewBlockLayoutWithBFI != GVDT_None && (ViewBlockFreqFuncName.empty() || F->getFunction()->getName().equals(ViewBlockFreqFuncName))) { MBFI->view(false); } -#endif // We always return true as we have no way to track whether the final order -- cgit v1.2.3