Skip to content

Commit 95083fe

Browse files
mateuszchudykigcbot
authored andcommitted
Remove getref/setref functions
- setref is not used anywhere in the codebase - getref is used only in one place but it's redundant in this case
1 parent 0615a41 commit 95083fe

File tree

4 files changed

+1
-34
lines changed

4 files changed

+1
-34
lines changed

IGC/Compiler/CustomSafeOptPass.cpp

-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,6 @@ cmp+sel to avoid expensive VxH mov.
6363
#include "common/IGCConstantFolder.h"
6464
#include "common/LLVMWarningsPush.hpp"
6565
#include "llvm/Config/llvm-config.h"
66-
#include "WrapperLLVM/Utils.h"
6766
#include "llvmWrapper/IR/IntrinsicInst.h"
6867
#include <llvmWrapper/IR/DIBuilder.h>
6968
#include <llvmWrapper/IR/DerivedTypes.h>

IGC/Compiler/GenTTI.cpp

+1-2
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ SPDX-License-Identifier: MIT
1515

1616
#include "common/LLVMWarningsPush.hpp"
1717
#include "llvm/Config/llvm-config.h"
18-
#include "WrapperLLVM/Utils.h"
1918

2019
#include "llvm/Analysis/CodeMetrics.h"
2120
#include "llvm/Analysis/LoopInfo.h"
@@ -304,7 +303,7 @@ namespace llvm {
304303
if (!ExitingBlock || !L->isLoopExiting(ExitingBlock))
305304
ExitingBlock = L->getExitingBlock();
306305
if (ExitingBlock)
307-
TripCount = IGCLLVM::getref(SE).getSmallConstantTripCount(L, ExitingBlock);
306+
TripCount = SE.getSmallConstantTripCount(L, ExitingBlock);
308307

309308
// Do not enable partial unrolling if the loop counter is float. It can cause precision issue.
310309
if (ExitingBlock) {

IGC/WrapperLLVM/CMakeLists.txt

-2
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@ set(IGC_BUILD__PROJ__WrapperLLVM "${IGC_BUILD__PROJ_NAME_PREFIX}WrapperLLV
1010
set(IGC_BUILD__PROJ__WrapperLLVM "${IGC_BUILD__PROJ__WrapperLLVM}" PARENT_SCOPE)
1111

1212
set(IGC_WrapperLLVM_HDR
13-
"${CMAKE_CURRENT_SOURCE_DIR}/Utils.h"
14-
1513
"${CMAKE_CURRENT_SOURCE_DIR}/include/llvmWrapper/ADT/APInt.h"
1614
"${CMAKE_CURRENT_SOURCE_DIR}/include/llvmWrapper/ADT/Optional.h"
1715
"${CMAKE_CURRENT_SOURCE_DIR}/include/llvmWrapper/ADT/STLExtras.h"

IGC/WrapperLLVM/Utils.h

-29
This file was deleted.

0 commit comments

Comments
 (0)