[PATCH] D121870: Use a stable-sort when combining bases
Craig Topper via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Mar 17 09:40:05 PDT 2022
craig.topper added inline comments.
================
Comment at: llvm/lib/Target/ARM/ARMISelLowering.cpp:15981
+ std::stable_sort(BaseUpdates.begin(), BaseUpdates.end(),
+ [](BaseUpdateUser &LHS, BaseUpdateUser &RHS) {
+ return LHS.ConstInc < RHS.ConstInc;
----------------
lambda needs to use const references that's probably what's causing the breakage.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D121870/new/
https://reviews.llvm.org/D121870
More information about the llvm-commits
mailing list