This is an archive of the discontinued LLVM Phabricator instance.

[mlir][math] Canonicalize math.sin with constant
AbandonedPublic

Authored by Lewuathe on Sep 14 2022, 11:58 PM.

Details

Summary

Canonicalize math.sin given with the constant value.

Diff Detail

Event Timeline

Lewuathe created this revision.Sep 14 2022, 11:58 PM
Lewuathe requested review of this revision.Sep 14 2022, 11:58 PM
ftynse added inline comments.Sep 15 2022, 12:19 AM
mlir/lib/Dialect/Math/IR/MathOps.cpp
489

Should this be sinf?

mlir/test/Dialect/Math/canonicalize.mlir
468

Please add the newline.

Actually, the earlier https://reviews.llvm.org/D133915 seems to be doing the same thing.

Actually, the earlier https://reviews.llvm.org/D133915 seems to be doing the same thing.

+1

Actually, the earlier https://reviews.llvm.org/D133915 seems to be doing the same thing.

+1

Oh, thanks. Good catch. I'll close this.

Lewuathe abandoned this revision.Sep 15 2022, 4:19 PM