Recommit "[GlobalISel] Import patterns containing INSERT_SUBREG"
authorJessica Paquette <jpaquette@apple.com>
Tue, 27 Aug 2019 17:47:06 +0000 (17:47 +0000)
committerJessica Paquette <jpaquette@apple.com>
Tue, 27 Aug 2019 17:47:06 +0000 (17:47 +0000)
commit9834453be72bf7431c89fc1f53dfbfa281de3887
tree620e7e7ec355cdbd3cdfd384632470b86d1f52a1
parent74db243a496ddd0c98831ca83ec3353a91783230
Recommit  "[GlobalISel] Import patterns containing INSERT_SUBREG"

I thought `llvm::sort` was stable for some reason but it's not.

Use `llvm::stable_sort` in `CodeGenTarget::getSuperRegForSubReg`.

Original patch: https://reviews.llvm.org/D66498

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@370084 91177308-0d34-0410-b5e6-96231b3b80d8
test/CodeGen/AArch64/GlobalISel/select-concat-vectors.mir
test/CodeGen/AArch64/GlobalISel/select-int-ext.mir
test/CodeGen/X86/GlobalISel/select-copy.mir
test/CodeGen/X86/GlobalISel/select-ext-x86-64.mir
test/CodeGen/X86/GlobalISel/select-ext.mir
test/CodeGen/X86/GlobalISel/x86_64-select-zext.mir
test/TableGen/GlobalISelEmitterSubreg.td [new file with mode: 0644]
utils/TableGen/CodeGenTarget.cpp
utils/TableGen/CodeGenTarget.h
utils/TableGen/GlobalISelEmitter.cpp