From d2a9b87fee84766b28bd39b46c913da00e1450f4 Mon Sep 17 00:00:00 2001 From: Matt Arsenault Date: Mon, 27 Jan 2020 13:59:25 -0500 Subject: [PATCH] TableGen: Try to fix expensive checks failures --- llvm/utils/TableGen/CodeGenRegisters.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/utils/TableGen/CodeGenRegisters.cpp b/llvm/utils/TableGen/CodeGenRegisters.cpp index 2946b47..9df09fd 100644 --- a/llvm/utils/TableGen/CodeGenRegisters.cpp +++ b/llvm/utils/TableGen/CodeGenRegisters.cpp @@ -1011,7 +1011,7 @@ CodeGenRegisterClass::getMatchingSubClassWithSubRegs( for (auto &RC : RegClasses) if (SuperRegRCsBV[RC.EnumValue]) SuperRegRCs.emplace_back(&RC); - llvm::sort(SuperRegRCs, SizeOrder); + llvm::stable_sort(SuperRegRCs, SizeOrder); assert(SuperRegRCs.front() == BiggestSuperRegRC && "Biggest class wasn't first"); -- 2.7.4