OSDN Git Service

[TableGen] Make OpcodeMappings sort comparator deterministic NFCI
authorAndrew Ng <anng.sw@gmail.com>
Tue, 26 Feb 2019 18:50:49 +0000 (18:50 +0000)
committerAndrew Ng <anng.sw@gmail.com>
Tue, 26 Feb 2019 18:50:49 +0000 (18:50 +0000)
commitcb49cb3c9262214da058bda28b0e297686e14e04
treef87b2b5b9c365dd3956785dba82063ef19de91ee
parentd04ee38acdc9d1493a7f5ea879c583357a4fe355
[TableGen] Make OpcodeMappings sort comparator deterministic NFCI

The previous sort comparator was not deterministic, i.e. in some
situations it would be possible for lhs < rhs && rhs < lhs. This was
discovered by an STL assertion in a Windows debug build of llvm-tblgen.

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

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