]> granicus.if.org Git - llvm/commit
Fix nondeterministic output in local stack slot alloc pass
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Wed, 26 Oct 2016 14:53:50 +0000 (14:53 +0000)
committerMatt Arsenault <Matthew.Arsenault@amd.com>
Wed, 26 Oct 2016 14:53:50 +0000 (14:53 +0000)
commitf205f3b0f444e1d713b8d0eee1ca135b403e641b
tree52c2d10ca035c4a48ffc1f5cde1f0b0b76bf29a4
parentd0147e5c7866b2bf79d1641755fb9c69b3f6e595
Fix nondeterministic output in local stack slot alloc pass

This finds all of the references to a frame index in a function, and
sorts by the offset. If multiple instructions use the same offset,
nothing was breaking the tie for sorting.

This avoids the test failures the reverted r282999 introduced.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@285201 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/LocalStackSlotAllocation.cpp