Skip to content

[Unity][Analysis] Change warning to info for non-affine transform - #15820

Merged
quic-sanirudh merged 2 commits into
apache:unityfrom
Lunderberg:unity_analysis_remove_warning_for_non_affine
Sep 27, 2023
Merged

[Unity][Analysis] Change warning to info for non-affine transform#15820
quic-sanirudh merged 2 commits into
apache:unityfrom
Lunderberg:unity_analysis_remove_warning_for_non_affine

Conversation

@Lunderberg

Copy link
Copy Markdown
Contributor

A PrimFunc may contain transformations that are not affine, or that are not recognizable as being affine. Prior to this commit, this produced a LOG(WARNING) stating that this was an error in the index analysis. Because this is the expected behavior for these functions, this commit updates the message to instead write to DLOG(INFO).

The other uses of LOG(WARNING) inside layout_transformation.cc are kept as-is, as they relate to limitations of the analysis, rather than being a statement about the analyzed PrimFunc.

A `PrimFunc` may contain transformations that are not affine, or that
are not recognizable as being affine. Prior to this commit, this
produced a `LOG(WARNING)` stating that this was an error in the index
analysis. Because this is the expected behavior for these functions,
this commit updates the message to instead write to `DLOG(INFO)`.
The other uses of `LOG(WARNING)` inside `layout_transformation.cc` are
kept as-is, as they relate to limitations of the analysis, rather than
being a statement about the analyzed `PrimFunc`.

@quic-sanirudhquic-sanirudh left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks.

@quic-sanirudh
quic-sanirudh merged commit ea329cb into apache:unitySep 27, 2023
@Lunderberg
Lunderberg deleted the unity_analysis_remove_warning_for_non_affine branch September 27, 2023 19:48
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@Lunderberg@quic-sanirudh