LowerTypeTests: Fix non-determinism in code that handles icall branch funnels.
authorPeter Collingbourne <peter@pcc.me.uk>
Sat, 5 May 2018 00:51:55 +0000 (00:51 +0000)
committerPeter Collingbourne <peter@pcc.me.uk>
Sat, 5 May 2018 00:51:55 +0000 (00:51 +0000)
commite04ecc88de83af096d9d293ea11bb70ee564de1c
treedda7f221b7ee6ad88443b91204845bed1b63bdc6
parent60609c9f12de46dc1b6b59d7ee78604e67980b3d
LowerTypeTests: Fix non-determinism in code that handles icall branch funnels.

This was exposed by enabling expensive checks, which causes llvm::sort
to sort randomly.

Differential Revision: https://reviews.llvm.org/D45901

llvm-svn: 331573
llvm/lib/Transforms/IPO/LowerTypeTests.cpp