Skip to content

Add instruction patterns weighing/priority #219

Description

@mhorod

Currently the best instruction pattern is selected by counting how many cfg nodes it covers.
This sometimes creates non-optimal pattern coverage as some patterns are a specification of another ones - for example PushPattern and PushRegPattern.

A potential solution for this issue is to add priority field to patterns and make matcher select maximum (coveredNodes, patternPriority).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions