Skip to content

Commit 546c9e0

Browse files
ppogotovigcbot
authored andcommitted
Remove FixFastMathFlags workaround.
FixFastMathFlags is workaround that sets AllowContract and ApproxFunc flags in case allowReassoc flag was set for this instruction. It is necessary to remove this pass, as AllowContract and ApproxFunc flags must be supported in the frontend.
1 parent 64d2d36 commit 546c9e0

File tree

7 files changed

+0
-306
lines changed

7 files changed

+0
-306
lines changed

IGC/AdaptorOCL/UnifyIROCL.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,6 @@ SPDX-License-Identifier: MIT
116116
#include "Compiler/FixResourcePtr.hpp"
117117
#include "Compiler/InitializePasses.h"
118118
#include "Compiler/MetaDataApi/SpirMetaDataApi.h"
119-
#include "Compiler/Optimizer/FixFastMathFlags.hpp"
120119
#include "Compiler/Optimizer/ReduceOptPass.hpp"
121120
#include "Compiler/CustomUnsafeOptPass.hpp"
122121
#include "MoveStaticAllocas.h"

IGC/Compiler/InitializePasses.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,6 @@ void initializeCheckInstrTypesPass(llvm::PassRegistry&);
221221
void initializeInstrStatisticPass(llvm::PassRegistry&);
222222
void initializeHalfPromotionPass(llvm::PassRegistry&);
223223
void initializeCapLoopIterationsPass(llvm::PassRegistry&);
224-
void initializeFixFastMathFlagsPass(llvm::PassRegistry&);
225224
void initializeFCmpPaternMatchPass(llvm::PassRegistry&);
226225
void initializeCodeAssumptionPass(llvm::PassRegistry&);
227226
void initializeIGCInstructionCombiningPassPass(llvm::PassRegistry&);

IGC/Compiler/Optimizer/CMakeLists.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ add_subdirectory(IGCInstCombiner)
1818
set(IGC_BUILD__SRC__Optimizer
1919
"${CMAKE_CURRENT_SOURCE_DIR}/BuiltInFuncImport.cpp"
2020
"${CMAKE_CURRENT_SOURCE_DIR}/CodeAssumption.cpp"
21-
"${CMAKE_CURRENT_SOURCE_DIR}/FixFastMathFlags.cpp"
2221
"${CMAKE_CURRENT_SOURCE_DIR}/GatingSimilarSamples.cpp"
2322
"${CMAKE_CURRENT_SOURCE_DIR}/IndirectCallOptimization.cpp"
2423
"${CMAKE_CURRENT_SOURCE_DIR}/IntDivConstantReduction.cpp"
@@ -45,7 +44,6 @@ set(IGC_BUILD__SRC__Compiler_Optimizer
4544
set(IGC_BUILD__HDR__Optimizer
4645
"${CMAKE_CURRENT_SOURCE_DIR}/BuiltInFuncImport.h"
4746
"${CMAKE_CURRENT_SOURCE_DIR}/CodeAssumption.hpp"
48-
"${CMAKE_CURRENT_SOURCE_DIR}/FixFastMathFlags.hpp"
4947
"${CMAKE_CURRENT_SOURCE_DIR}/GatingSimilarSamples.hpp"
5048
"${CMAKE_CURRENT_SOURCE_DIR}/IndirectCallOptimization.hpp"
5149
"${CMAKE_CURRENT_SOURCE_DIR}/IntDivConstantReduction.hpp"

IGC/Compiler/Optimizer/FixFastMathFlags.cpp

Lines changed: 0 additions & 78 deletions
This file was deleted.

IGC/Compiler/Optimizer/FixFastMathFlags.hpp

Lines changed: 0 additions & 37 deletions
This file was deleted.

IGC/Compiler/tests/DebugInfo/FixFastMathFlags.ll

Lines changed: 0 additions & 109 deletions
This file was deleted.

IGC/Compiler/tests/FixFastMathFlags/basic.ll

Lines changed: 0 additions & 78 deletions
This file was deleted.

0 commit comments

Comments
 (0)