]> granicus.if.org Git - llvm/commit
[globalisel] Sort RuleMatchers by priority.
authorDaniel Sanders <daniel_l_sanders@apple.com>
Fri, 24 Feb 2017 13:58:11 +0000 (13:58 +0000)
committerDaniel Sanders <daniel_l_sanders@apple.com>
Fri, 24 Feb 2017 13:58:11 +0000 (13:58 +0000)
commitc12232d4ad1f8ab52452f9a6c6f8a40b175e7751
tree24d27a9102ced88d6d025a3899493216aa04f0f5
parentdba394d354b2abd505cd1e1a1a656681a2a3e29f
[globalisel] Sort RuleMatchers by priority.

Summary:
This makes more important rules have priority over less important rules.
For example, '%a = G_ADD $b:s64, $c:s64' has priority over
'%a = G_ADD $b:s32, $c:s32'. Previously these rules were emitted in the
correct order by chance.

NFC in this patch but it is required to make the next patch work correctly.

Depends on D29710

Reviewers: t.p.northover, ab, qcolombet, aditya_nandakumar, rovka

Reviewed By: ab, rovka

Subscribers: javed.absar, dberris, llvm-commits, kristof.beyls

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@296121 91177308-0d34-0410-b5e6-96231b3b80d8
utils/TableGen/GlobalISelEmitter.cpp