Skip to content
Commit 679c3a17 authored by Sam McCall's avatar Sam McCall
Browse files

[TargetLowering] use stable_sort to avoid nondeterminism

After 330fa7d2 we were seeing nondeterministic failures of
llvm/test/CodeGen/ARM/thumb-big-stack.ll, with different code being
generated in different runs.

Switching sort -> stable_sort fixes this.
It looks like the old algorithm picked the first best option, and using
stable_sort restores that behavior.
parent fb8ce45a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment