This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Fix scheduling undeterminism from sorting with DEBUG_INSNs


On Jan 19, 2015, at 5:41 AM, Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org> wrote:
> In A < B < C < A case all A, B and C are normal instructions.  It is a pre-existing condition.  When compiling without debug information we have ready list "A, B, C".  When compiling with debug information, we have ready list "A, B, C, D" where "D" is DEBUG_INSN.  Because we now have 4 elements to sort instead of 3, qsort can choose a different order of comparison _among_ A, B and C.

Not when the uid is mixed in it cannot.  :-)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]