-
Notifications
You must be signed in to change notification settings - Fork 12.6k
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
Conversation
@llvm/pr-subscribers-mlir-core Author: Giuseppe Rossini (giuseros) ChangesFull diff: https://github.com/llvm/llvm-project/pull/102869.diff 1 Files Affected:
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())
|
@llvm/pr-subscribers-mlir Author: Giuseppe Rossini (giuseros) ChangesFull diff: https://github.com/llvm/llvm-project/pull/102869.diff 1 Files Affected:
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())
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
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.
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.
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.
No description provided.