Skip to content

Commit 3eec71e

Browse files
tmparkigcbot
authored andcommitted
Minor changes
Flag name changes and add enum for more clarity
1 parent 38df5cf commit 3eec71e

File tree

5 files changed

+356
-72
lines changed

5 files changed

+356
-72
lines changed

IGC/AdaptorCommon/ProcessFuncAttributes.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -616,7 +616,7 @@ bool ProcessFuncAttributes::runOnModule(Module& M)
616616
{
617617
if( ( IGC_GET_FLAG_VALUE( PrintControlKernelTotalSize ) & 0x4 ) != 0 )
618618
{
619-
std::cout << "Trimmed function " << F->getName().str() << std::endl;
619+
dbgs() << "Trimmed function " << F->getName().str() << "\n";
620620
}
621621

622622
if (IGC_IS_FLAG_ENABLED(AddNoInlineToTrimmedFunctions))

IGC/AdaptorOCL/UnifyIROCL.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ SPDX-License-Identifier: MIT
1414
#include <llvm/Analysis/CFGPrinter.h>
1515
#include <llvm/Analysis/Passes.h>
1616
#include <llvm/Analysis/TargetTransformInfo.h>
17+
#include <llvm/Analysis/BlockFrequencyInfo.h>
18+
#include <llvm/Analysis/BranchProbabilityInfo.h>
19+
#include <llvm/Analysis/LoopInfo.h>
1720
#include <llvm/Pass.h>
1821
#include <llvm/IR/PassManager.h>
1922
#include <llvm/Transforms/IPO.h>
@@ -389,6 +392,10 @@ static void CommonOCLBasedPasses(
389392
mpm.add(createSCCPPass());
390393
mpm.add(new ResolveConstExprCalls());
391394

395+
mpm.add(new LoopInfoWrapperPass());
396+
mpm.add(new BranchProbabilityInfoWrapperPass());
397+
mpm.add(new BlockFrequencyInfoWrapperPass());
398+
392399
// Estimate maximal function size in the module and disable subroutine if not profitable.
393400
mpm.add(createEstimateFunctionSizePass());
394401
mpm.add(createProcessFuncAttributesPass());

0 commit comments

Comments
 (0)