This is an archive of the discontinued LLVM Phabricator instance.

[MLIR][GPU] Simplify memcpy of cast
ClosedPublic

Authored by wsmoses on Jun 7 2021, 10:52 AM.

Details

Summary

Introduce a simplification that allows memcpy of a cast to simply use the underlying op

Diff Detail

Event Timeline

wsmoses created this revision.Jun 7 2021, 10:52 AM
wsmoses requested review of this revision.Jun 7 2021, 10:52 AM
Herald added a project: Restricted Project. · View Herald Transcript
ftynse accepted this revision.Jun 7 2021, 10:58 AM
This revision is now accepted and ready to land.Jun 7 2021, 10:58 AM
This revision was landed with ongoing or failed builds.Jun 7 2021, 11:01 AM
This revision was automatically updated to reflect the committed changes.
mehdi_amini added inline comments.Jun 7 2021, 11:11 AM
mlir/lib/Dialect/GPU/IR/GPUDialect.cpp
1073

I'd rather not use LogicalResult for something that isn't "success" or "failure", this seems like a bool to me here.

Also, isn't this method duplicated in many places now? Can it be made inlined in a header in the memref dialect somehow?

rriddle added inline comments.Jun 7 2021, 11:25 AM
mlir/lib/Dialect/GPU/IR/GPUDialect.cpp
1076

Drop the mlir:: here.