[Mlir-commits] [mlir] [MLIR][Math] add canonicalize-f32-promotion pass (PR #92482)

Ivy Zhang llvmlistbot at llvm.org
Wed May 22 08:04:12 PDT 2024


================
@@ -109,4 +135,14 @@ void LegalizeToF32Pass::runOnOperation() {
   math::populateLegalizeToF32Patterns(patterns, typeConverter);
   if (failed(applyPartialConversion(op, target, std::move(patterns))))
     return signalPassFailure();
+  
+  if (useCanonicalizeF32Promotion) {
----------------
crazydemo wrote:

Maybe we can apply the one stage approach in legalization pass, and create another pass for something like graph simplification use. @ZhennanQin 

https://github.com/llvm/llvm-project/pull/92482


More information about the Mlir-commits mailing list