|
16 | 16 |
|
17 | 17 | namespace mlir::iree_compiler { |
18 | 18 |
|
19 | | -/// Deprecated! This flag had buggy/unintentional semantics. |
20 | | -/// Its original comment said: |
21 | | -/// ""use native hardware operations instead of polynomial approximation". |
22 | | -static llvm::cl::opt<bool> clNativeMathPrecision( |
23 | | - "iree-codegen-gpu-native-math-precision", |
24 | | - llvm::cl::desc("Deprecated! This flag doesn't do anything anymore and will " |
25 | | - "be removed soon."), |
26 | | - llvm::cl::init(false)); |
27 | | - |
28 | 19 | #define GEN_PASS_DEF_MATHTRANSFORMPASS |
29 | 20 | #include "iree/compiler/Codegen/Common/Passes.h.inc" |
30 | 21 |
|
@@ -173,27 +164,12 @@ static bool predicateDeviceLibImpl(StringRef name, |
173 | 164 |
|
174 | 165 | namespace { |
175 | 166 |
|
176 | | -struct DeprecationWarningForNativeMathPrecision { |
177 | | - DeprecationWarningForNativeMathPrecision() { |
178 | | - if (clNativeMathPrecision) { |
179 | | - clNativeMathPrecision.error( |
180 | | - "This option is deprecated, does not do anything anymore, and will " |
181 | | - "be removed soon. It was mainly used on the ROCm target, but the " |
182 | | - "behavior that it once enabled is now default on ROCm. More " |
183 | | - "generally, MathTransformPass should do the right things for each " |
184 | | - "target."); |
185 | | - } |
186 | | - } |
187 | | -}; |
188 | | - |
189 | 167 | class MathTransformPass final |
190 | 168 | : public impl::MathTransformPassBase<MathTransformPass> { |
191 | 169 | public: |
192 | 170 | using Base::Base; |
193 | 171 |
|
194 | 172 | void runOnOperation() override { |
195 | | - static DeprecationWarningForNativeMathPrecision warning; |
196 | | - |
197 | 173 | RewritePatternSet patterns(&getContext()); |
198 | 174 | auto target = IREE::HAL::ExecutableTargetAttr::lookup(getOperation()); |
199 | 175 | if (!target) { |
|
0 commit comments