This is an archive of the discontinued LLVM Phabricator instance.

WIP: [MLIR] Lower vector slices while lowering linalg to LLVM.
AbandonedPublic

Authored by poechsel on Apr 7 2020, 10:47 AM.

Diff Detail

Event Timeline

poechsel created this revision.Apr 7 2020, 10:47 AM
Herald added a project: Restricted Project. · View Herald Transcript
poechsel changed the visibility from "Public (No Login Required)" to "poechsel (Pierre Oechsel)".Apr 8 2020, 7:46 AM
poechsel retitled this revision from Lower vector slices while lowering linalg to LLVM. to WIP: [MLIR] Lower vector slices while lowering linalg to LLVM..Apr 8 2020, 9:12 AM
poechsel changed the visibility from "poechsel (Pierre Oechsel)" to "Public (No Login Required)".
nicolasvasilache accepted this revision.Apr 8 2020, 10:12 AM
This revision is now accepted and ready to land.Apr 8 2020, 10:12 AM
aartbik added inline comments.Apr 9 2020, 8:55 AM
mlir/lib/Conversion/LinalgToLLVM/LinalgToLLVM.cpp
580

nit: I would move this down with white space around it. Reason, all others populate for the apply method below, this one already applies

mlir/lib/Conversion/VectorToLLVM/ConvertVectorToLLVM.cpp
1233

nit: slightly more general name, we are packing more and more vector-vector lowerings into this set? (I have another one pending :-)

aartbik added inline comments.Apr 9 2020, 11:02 AM
mlir/lib/Conversion/VectorToLLVM/ConvertVectorToLLVM.cpp
1241

can you keep these comments too please in the moved code?

poechsel updated this revision to Diff 257636.Apr 15 2020, 2:17 AM
poechsel marked an inline comment as done.

Rebase, address comments

poechsel marked an inline comment as not done.Apr 15 2020, 2:18 AM
poechsel added inline comments.
mlir/lib/Conversion/VectorToLLVM/ConvertVectorToLLVM.cpp
1233

Actually I think putting these in a separate pass might be a good idea:

  • lowerVectorSlicesToLLVM already looks like an independent pass (we are first collecting a bunch of patterns and then applying them greedily)
  • Testing is also made harder as lowerVectorSlicesToLLVM also does dead code elimination.
aartbik accepted this revision.Apr 30 2020, 1:25 PM
poechsel abandoned this revision.May 13 2020, 10:30 AM