Skip to content

Commit 9901906

Browse files
[mlir] Fix a warning
This patch fixes: mlir/lib/Conversion/GPUCommon/GPUToLLVMConversion.cpp:535:13: error: 'applyPatternsAndFoldGreedily' is deprecated: Use applyPatternsGreedily() instead [-Werror,-Wdeprecated-declarations]
1 parent 5162fde commit 9901906

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

mlir/lib/Conversion/GPUCommon/GPUToLLVMConversion.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -531,8 +531,7 @@ void GpuToLLVMConversionPass::runOnOperation() {
531531
// Vector transfer ops with rank > 1 should be lowered with VectorToSCF.
532532
vector::populateVectorTransferLoweringPatterns(patterns,
533533
/*maxTransferRank=*/1);
534-
if (failed(
535-
applyPatternsAndFoldGreedily(getOperation(), std::move(patterns))))
534+
if (failed(applyPatternsGreedily(getOperation(), std::move(patterns))))
536535
return signalPassFailure();
537536
}
538537

0 commit comments

Comments
 (0)