This is an archive of the discontinued LLVM Phabricator instance.

[MLIR] Fix compiler warnings (NFC)
ClosedPublic

Authored by chelini on Jul 4 2023, 5:53 AM.

Details

Summary

In TestTensorTransforms.cpp replaced is nullptr I assumed the intent
was to emit the error for the rootOp.

In TransformInterfaces.cpp there were some uninitialized variables.

In NVGPUTransformOps.cpp matmulOp was never used.

Diff Detail

Event Timeline

chelini created this revision.Jul 4 2023, 5:53 AM
Herald added a project: Restricted Project. · View Herald TranscriptJul 4 2023, 5:53 AM
chelini requested review of this revision.Jul 4 2023, 5:53 AM
ftynse added a subscriber: ftynse.Jul 4 2023, 5:57 AM
ftynse added inline comments.
mlir/lib/Dialect/Linalg/Transforms/Padding.cpp
103

This parenthesation is confusing.

mlir/lib/Dialect/Transform/IR/TransformInterfaces.cpp
524–526

Can we rather set something like UINT_MAX here so we immediately see if the "unset" value is used?

chelini updated this revision to Diff 537075.Jul 4 2023, 6:14 AM

Address comment

mlir/lib/Dialect/Linalg/Transforms/Padding.cpp
103

Sorry, fixed now.

mlir/lib/Dialect/Transform/IR/TransformInterfaces.cpp
524–526

went for numeric_limits let me know if you prefer UINT_MAX.

ftynse accepted this revision.Jul 4 2023, 6:20 AM
This revision is now accepted and ready to land.Jul 4 2023, 6:20 AM
This revision was automatically updated to reflect the committed changes.