HomePhabricator

[MLIR] Test pattern benefit sorting between operation specific and operation…

Authored by Hardcode84 on Mar 12 2021, 6:39 AM.

Description

[MLIR] Test pattern benefit sorting between operation specific and operation agnostic patterns.

Previously low benefit op-specific patterns never had a chance to match
even if high benefit op-agnostic pattern failed to match.

This was already fixed upstream, this commit just adds testscase

Differential Revision: https://reviews.llvm.org/D98513