[Mlir-commits] [mlir] [MLIR][Complex] DivOp check for NaN in the folder (PR #169724)
Amr Hesham
llvmlistbot at llvm.org
Tue Jan 13 09:50:04 PST 2026
================
@@ -374,21 +372,32 @@ OpFoldResult MulOp::fold(FoldAdaptor adaptor) {
OpFoldResult DivOp::fold(FoldAdaptor adaptor) {
auto rhs = adaptor.getRhs();
- if (!rhs)
+ auto lhs = adaptor.getLhs();
+ if (!rhs || !lhs)
----------------
AmrDeveloper wrote:
I think yes, at least for NaN in the flag, then we can update the folder to also take care of Inf, I can do this in follow-up PR
https://github.com/llvm/llvm-project/pull/169724
More information about the Mlir-commits
mailing list