YGTao

Results issues of YGTao

`affine-loop-fusion` incorrectly fuses a consumer into a producer loop that passes the produced memref to an external `func.call`. The silent miscompilation is the primary issue. The same reduced input also...

miscompilation
mlir

`affine-loop-fusion` moves an external call that uses a cast alias from between the producer and consumer loops to before the producer, and then fuses the loops. This changes the program...

miscompilation
mlir

## Summary Applying `affine-loop-fusion` to the verifier-valid program below changes the result from `-4` to `0`. The producer covers `j = [0, 4)`, whereas the consumer covers `j = [0,...

mlir

## Summary Applying `affine-loop-fusion` to the verifier-valid program below changes the result from `3` to `6`. The producer reads `a[1]` in every iteration. The consumer, which originally runs only after...

mlir

## Summary Applying producer/maximal `affine-loop-fusion` to the verifier-valid program below generates a verifier-valid target containing out-of-bounds loads from a private buffer. Without fusion, the consumer loads `%comm[%j]` from a `memref`....

mlir

## Summary Applying producer/maximal `affine-loop-fusion` to the verifier-valid program below generates a verifier-valid target containing in-bounds loads from local buffer elements that have no reaching store. The producer computes the...

mlir

## Summary Running `affine-loop-tile` followed by `affine-loop-fusion` on the verifier-valid program below crashes `mlir-opt`. Sibling fusion clones a result-producing `affine.for`, but does not replace the external use of the original...

mlir
crash

## Summary Running `affine-loop-fusion` on the verifier-valid program below crashes `mlir-opt`. During sibling fusion, promotion of a cloned single-iteration reduction replaces the destination parent loop. The fusion code subsequently attempts...

mlir:affine
crash

I found that the Lattigo Go emitter loses precision when printing floating-point splat constants. Small nonzero values can become exactly zero in the generated code, changing the computation. ### Reproducer...

I found that `compare-to-sign-rewrite` uses the wrong subtraction order when rewriting less-than and greater-than comparisons. For example, `arith.cmpf olt` is rewritten as: ```text 0.5 * (sign(a - b) + 1)...