This is an archive of the discontinued LLVM Phabricator instance.

[mlir][linalg] Fix neutral element value for minf/maxf
ClosedPublic

Authored by ThomasRaoux on Nov 3 2022, 9:28 PM.

Details

Summary

The neutral element got minf/maxf should be respectively +inf and -inf.

Bug reported by @Hardcode84.

Diff Detail

Event Timeline

ThomasRaoux created this revision.Nov 3 2022, 9:28 PM
Herald added a project: Restricted Project. · View Herald TranscriptNov 3 2022, 9:28 PM
ThomasRaoux requested review of this revision.Nov 3 2022, 9:28 PM
Hardcode84 accepted this revision.Nov 4 2022, 2:24 AM

LGTM

mlir/test/Dialect/Linalg/transform-op-split-reduction.mlir
115

Side question: Does anyone know why they are printed as hex instead of +/-inf? Doesn't look very user-friendly.

This revision is now accepted and ready to land.Nov 4 2022, 2:24 AM
This revision was automatically updated to reflect the committed changes.