We were checking real-part twice, not real/imag-part.
The new test only passes after the bug fix.
Details
Details
Diff Detail
Diff Detail
- Repository
 - rG LLVM Github Monorepo
 
Paths 
  |  Differential  D131190  
[mlir][sparse] fix bug in complex zero detection ClosedPublic Authored by aartbik on Aug 4 2022, 12:09 PM. 
Details Summary We were checking real-part twice, not real/imag-part. 
Diff Detail 
 Event TimelineThis revision is now accepted and ready to land.Aug 4 2022, 12:32 PM This revision was landed with ongoing or failed builds.Aug 4 2022, 1:35 PM Closed by commit rG7f5b16733651: [mlir][sparse] fix bug in complex zero detection (authored by aartbik).  ·  Explain Why This revision was automatically updated to reflect the committed changes. 
Revision Contents 
 
 
Diff 450094 mlir/lib/Dialect/SparseTensor/Utils/Merger.cpp
 mlir/test/Dialect/SparseTensor/sparse_fp_ops.mlir
  | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||