[TableGen] Fix invalid comparison function `SizeOrder` in `getMatchingSubClassWithSub...
authorTa-Wei Tu <tu.da.wei@gmail.com>
Tue, 15 Sep 2020 19:38:06 +0000 (15:38 -0400)
committerMatt Arsenault <Matthew.Arsenault@amd.com>
Tue, 15 Sep 2020 19:48:43 +0000 (15:48 -0400)
commit38ecd6161993ea9632efe0c0bf304bf6c2dee98f
treee7c537950c9614c93ea3c79468e5dadd1fed1356
parent7d6ca2ec57073b9eabe6808ff1fe0560586c5ffb
[TableGen] Fix invalid comparison function `SizeOrder` in `getMatchingSubClassWithSubRegs`

Building LLVM with -DEXPENSIVE_CHECKS fails with the following error
message with libstdc++ in debug mode:

Error: comparison doesn't meet irreflexive requirements,
assert(!(a < a)).

The patch fixes the comparison function SizeOrder by returning false
when comparing two equal items.
llvm/utils/TableGen/CodeGenRegisters.cpp