Skip to content

Commit

Permalink
TableGen: Try to fix expensive checks failures
Browse files Browse the repository at this point in the history
  • Loading branch information
arsenm committed Jan 27, 2020
1 parent 75d66f8 commit d2a9b87
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion llvm/utils/TableGen/CodeGenRegisters.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit d2a9b87

Please sign in to comment.