Skip to content

[loop-interchange] Move tests to use remarks #123053

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 16, 2025

Conversation

sjoerdmeijer
Copy link
Collaborator

Checking the remark message if interchange did or didn't happen is more straight forward than the full IR for these cases. This comment was also made when I moved some tests away from relying on debug builds in change #116780, and this is a prep step for #119345 that is going to change these test cases.

@llvmbot
Copy link
Member

llvmbot commented Jan 15, 2025

@llvm/pr-subscribers-llvm-transforms

Author: Sjoerd Meijer (sjoerdmeijer)

Changes

Checking the remark message if interchange did or didn't happen is more straight forward than the full IR for these cases. This comment was also made when I moved some tests away from relying on debug builds in change #116780, and this is a prep step for #119345 that is going to change these test cases.


Full diff: https://github.com/llvm/llvm-project/pull/123053.diff

6 Files Affected:

  • (modified) llvm/test/Transforms/LoopInterchange/gh54176-scalar-deps.ll (+20-92)
  • (modified) llvm/test/Transforms/LoopInterchange/innermost-latch-uses-values-in-middle-header.ll (+24-48)
  • (modified) llvm/test/Transforms/LoopInterchange/interchange-flow-dep-outer.ll (+24-48)
  • (modified) llvm/test/Transforms/LoopInterchange/outer-header-jump-to-inner-latch.ll (+21-84)
  • (modified) llvm/test/Transforms/LoopInterchange/pr43797-lcssa-for-multiple-outer-loop-blocks.ll (+18-80)
  • (modified) llvm/test/Transforms/LoopInterchange/vector-gep-operand.ll (+10-36)

Copy link
Contributor

@kasuga-fj kasuga-fj left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

@madhur13490
Copy link
Contributor

madhur13490 commented Jan 16, 2025

Given that we don't want assembly output now, can we remove -S and also redirection to &1 from the tests?

@sjoerdmeijer
Copy link
Collaborator Author

Given that we don't want assembly output now, can we remove -S and also redirection to &1 from the tests?

Thanks, I will remove -S and add -disable-output before merging this.

Checking the remark message if interchange did or didn't happen is more
straight forward than checking the full IR for these cases. This comment was
also made when I moved some tests away from relying on debug builds in
change llvm#116780, and this is a prep step for llvm#119345 that is going to
change these steps.
@sjoerdmeijer sjoerdmeijer merged commit 77803e4 into llvm:main Jan 16, 2025
6 of 7 checks passed
@sjoerdmeijer sjoerdmeijer deleted the li-test-remark branch January 16, 2025 15:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants