[test] Fix use of 'sort -b' in SimpleLoopUnswitch on NetBSD
authorMichal Gorny <mgorny@gentoo.org>
Sun, 2 Dec 2018 16:49:33 +0000 (16:49 +0000)
committerMichal Gorny <mgorny@gentoo.org>
Sun, 2 Dec 2018 16:49:33 +0000 (16:49 +0000)
commitff13c24cfe78f721119d8ffdacd87e8465a12f2e
tree27a53de640c32139a972dc26be82fff39605bbd0
parent014a6f930ac64ed51f82e3f3880a18c696447346
[test] Fix use of 'sort -b' in SimpleLoopUnswitch on NetBSD

Add '-k 1' to 'sort -b' calls in SimpleLoopUnswitch tests, as required
for sort implementation on NetBSD.  The '-b' modifier is ineffective
if specified without any key.  Per the manpage:

  Note that the -b option has no effect unless key fields are specified.

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

llvm-svn: 348097
llvm/test/Transforms/SimpleLoopUnswitch/exponential-nontrivial-unswitch-nested.ll
llvm/test/Transforms/SimpleLoopUnswitch/exponential-nontrivial-unswitch-nested2.ll
llvm/test/Transforms/SimpleLoopUnswitch/exponential-switch-unswitch.ll