Unverified Commit 5c8d1238 authored by Wang Pengcheng's avatar Wang Pengcheng Committed by GitHub
Browse files

[SelectionDAG] Add space-optimized forms of OPC_CheckPatternPredicate (#73319)


We record the usage of each `PatternPredicate` and sort them by
usage.

For the top 8 `PatternPredicate`s, we will emit a
`OPC_CheckPatternPredicateN` to save one byte.

The old `OPC_CheckPatternPredicate2` is renamed to
`OPC_CheckPatternPredicateTwoByte`.

Overall this reduces the llc binary size with all in-tree targets by
about 93K.
parent 211abe38
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment