Skip to content
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

Fix late comment review for #102038 #102869

Merged
merged 1 commit into from
Aug 12, 2024
Merged

Conversation

giuseros
Copy link
Contributor

No description provided.

@llvmbot llvmbot added mlir:core MLIR Core Infrastructure mlir labels Aug 12, 2024
@llvmbot
Copy link
Member

llvmbot commented Aug 12, 2024

@llvm/pr-subscribers-mlir-core

Author: Giuseppe Rossini (giuseros)

Changes

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

1 Files Affected:

  • (modified) mlir/lib/Transforms/Utils/RegionUtils.cpp (+2-1)
diff --git a/mlir/lib/Transforms/Utils/RegionUtils.cpp b/mlir/lib/Transforms/Utils/RegionUtils.cpp
index dd75e283a36b8d..3c7523827699c8 100644
--- a/mlir/lib/Transforms/Utils/RegionUtils.cpp
+++ b/mlir/lib/Transforms/Utils/RegionUtils.cpp
@@ -1012,7 +1012,8 @@ static LogicalResult dropRedundantArguments(RewriterBase &rewriter,
 
     // Add any nested regions to the worklist.
     for (Block &block : *region) {
-      anyChanged = succeeded(dropRedundantArguments(rewriter, block));
+      anyChanged =
+          succeeded(dropRedundantArguments(rewriter, block)) || anyChanged;
 
       for (Operation &op : block)
         for (Region &nestedRegion : op.getRegions())

@llvmbot
Copy link
Member

llvmbot commented Aug 12, 2024

@llvm/pr-subscribers-mlir

Author: Giuseppe Rossini (giuseros)

Changes

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

1 Files Affected:

  • (modified) mlir/lib/Transforms/Utils/RegionUtils.cpp (+2-1)
diff --git a/mlir/lib/Transforms/Utils/RegionUtils.cpp b/mlir/lib/Transforms/Utils/RegionUtils.cpp
index dd75e283a36b8d..3c7523827699c8 100644
--- a/mlir/lib/Transforms/Utils/RegionUtils.cpp
+++ b/mlir/lib/Transforms/Utils/RegionUtils.cpp
@@ -1012,7 +1012,8 @@ static LogicalResult dropRedundantArguments(RewriterBase &rewriter,
 
     // Add any nested regions to the worklist.
     for (Block &block : *region) {
-      anyChanged = succeeded(dropRedundantArguments(rewriter, block));
+      anyChanged =
+          succeeded(dropRedundantArguments(rewriter, block)) || anyChanged;
 
       for (Operation &op : block)
         for (Region &nestedRegion : op.getRegions())

@giuseros giuseros requested a review from Hardcode84 August 12, 2024 09:41
Copy link
Contributor

@Hardcode84 Hardcode84 left a comment

Choose a reason for hiding this comment

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

Thanks!

@giuseros giuseros merged commit a0241e7 into llvm:main Aug 12, 2024
11 checks passed
bwendling pushed a commit to bwendling/llvm-project that referenced this pull request Aug 15, 2024
antiagainst added a commit to triton-lang/triton that referenced this pull request Aug 31, 2024
This contains the two commit we want to have for AMD backend:
* llvm/llvm-project#102869
* llvm/llvm-project#104598

This needs to update `visitOperation` signature following
llvm/llvm-project@15e915a44f

Also added `mlir::LLVM::registerInlinerInterface` to address

LLVM ERROR: checking for an interface (`mlir::DialectInlinerInterface`)
that was promised by dialect 'llvm' but never implemented.
antiagainst added a commit to antiagainst/triton that referenced this pull request Aug 31, 2024
This contains the two commit we want to have for AMD backend:
* llvm/llvm-project#102869
* llvm/llvm-project#104598

This needs to update `visitOperation` signature following
llvm/llvm-project@15e915a44f

Also added `mlir::LLVM::registerInlinerInterface` to address

LLVM ERROR: checking for an interface (`mlir::DialectInlinerInterface`)
that was promised by dialect 'llvm' but never implemented.
bertmaher pushed a commit to bertmaher/triton that referenced this pull request Dec 10, 2024
This contains the two commit we want to have for AMD backend:
* llvm/llvm-project#102869
* llvm/llvm-project#104598

This needs to update `visitOperation` signature following
llvm/llvm-project@15e915a44f

Also added `mlir::LLVM::registerInlinerInterface` to address

LLVM ERROR: checking for an interface (`mlir::DialectInlinerInterface`)
that was promised by dialect 'llvm' but never implemented.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
mlir:core MLIR Core Infrastructure mlir
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants