This is an archive of the discontinued LLVM Phabricator instance.

[mlir][scf] Match any constants instead of arith.constant
ClosedPublic

Authored by Mogball on Oct 8 2022, 9:41 AM.

Details

Summary

By matching arith.constant specifically, SCF canonicalizers/folders
are incompatible with other kinds of constants. Use the generic
matchers instead.

Diff Detail

Event Timeline

Mogball created this revision.Oct 8 2022, 9:41 AM
Herald added a project: Restricted Project. · View Herald TranscriptOct 8 2022, 9:41 AM
Mogball requested review of this revision.Oct 8 2022, 9:41 AM
rriddle accepted this revision.Oct 12 2022, 12:05 AM

nit on the description, these matchers are not EDSCs.

mlir/lib/Dialect/SCF/IR/SCF.cpp
1887

Can you sink this to the use?

This revision is now accepted and ready to land.Oct 12 2022, 12:05 AM
Mogball updated this revision to Diff 467331.Oct 12 2022, 6:01 PM
Mogball marked an inline comment as done.

comments

Mogball edited the summary of this revision. (Show Details)Oct 12 2022, 6:01 PM
This revision was landed with ongoing or failed builds.Oct 12 2022, 6:02 PM
This revision was automatically updated to reflect the committed changes.