Page MenuHomePhabricator

[Matrix] Run simple version of lowering in backend.

Authored by fhahn on Mar 26 2020, 9:05 AM.



The lowering of the matrix intrinsics is done by the
LowerMatrixIntrinsics pass, which usually runs as part of the
middle-end. The backends do not know how to lower the various matrix
intrinsics however. To avoid llc crashing on IR containing matrix
intrinsics we run a simple/minimal lowering pass, which has no
dependencies besides TTI unconditionally. It will be a no-op for
functions not marked with the may-contain-matrix-intrinsics attribute.

Fixes PR45227.

Diff Detail

Event Timeline

fhahn created this revision.Mar 26 2020, 9:05 AM
Herald added a project: Restricted Project. · View Herald TranscriptMar 26 2020, 9:05 AM
This revision is now accepted and ready to land.Mar 26 2020, 9:18 AM
fhahn added a comment.Jul 16 2020, 9:43 AM

I won't submit the patch as-is, as it seems there are some minor compile-time regressions ( which I'd rather avoid. I'll get back to this once we have a better way to detect whether there are any matrix intrinsics to lower.