diff options
author | Michal Gorny <mgorny@gentoo.org> | 2018-12-02 16:49:33 +0000 |
---|---|---|
committer | Michal Gorny <mgorny@gentoo.org> | 2018-12-02 16:49:33 +0000 |
commit | ff13c24cfe78f721119d8ffdacd87e8465a12f2e (patch) | |
tree | 27a53de640c32139a972dc26be82fff39605bbd0 /llvm/test/Transforms/SimpleLoopUnswitch/exponential-nontrivial-unswitch-nested.ll | |
parent | 014a6f930ac64ed51f82e3f3880a18c696447346 (diff) | |
download | bcm5719-llvm-ff13c24cfe78f721119d8ffdacd87e8465a12f2e.tar.gz bcm5719-llvm-ff13c24cfe78f721119d8ffdacd87e8465a12f2e.zip |
[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
Diffstat (limited to 'llvm/test/Transforms/SimpleLoopUnswitch/exponential-nontrivial-unswitch-nested.ll')
-rw-r--r-- | llvm/test/Transforms/SimpleLoopUnswitch/exponential-nontrivial-unswitch-nested.ll | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/test/Transforms/SimpleLoopUnswitch/exponential-nontrivial-unswitch-nested.ll b/llvm/test/Transforms/SimpleLoopUnswitch/exponential-nontrivial-unswitch-nested.ll index 512dc4157a6..711c476a5e5 100644 --- a/llvm/test/Transforms/SimpleLoopUnswitch/exponential-nontrivial-unswitch-nested.ll +++ b/llvm/test/Transforms/SimpleLoopUnswitch/exponential-nontrivial-unswitch-nested.ll @@ -18,7 +18,7 @@ ; RUN: opt < %s -enable-nontrivial-unswitch -enable-unswitch-cost-multiplier=true \ ; RUN: -unswitch-num-initial-unscaled-candidates=4 -unswitch-siblings-toplevel-div=1 \ ; RUN: -passes='loop(unswitch),print<loops>' -disable-output 2>&1 | \ -; RUN: sort -b | FileCheck %s --check-prefixes=LOOP-UNSCALE4-DIV1 +; RUN: sort -b -k 1 | FileCheck %s --check-prefixes=LOOP-UNSCALE4-DIV1 ; ; NB: sort -b is essential here and below, otherwise blanks might lead to different ; order depending on locale. @@ -26,7 +26,7 @@ ; RUN: opt < %s -enable-nontrivial-unswitch -enable-unswitch-cost-multiplier=true \ ; RUN: -unswitch-num-initial-unscaled-candidates=4 -unswitch-siblings-toplevel-div=2 \ ; RUN: -passes='loop(unswitch),print<loops>' -disable-output 2>&1 | \ -; RUN: sort -b | FileCheck %s --check-prefixes=LOOP-UNSCALE4-DIV2 +; RUN: sort -b -k 1 | FileCheck %s --check-prefixes=LOOP-UNSCALE4-DIV2 ; ; ; Get @@ -35,7 +35,7 @@ ; ; RUN: opt < %s -enable-nontrivial-unswitch -enable-unswitch-cost-multiplier=false \ ; RUN: -passes='loop(unswitch),print<loops>' -disable-output 2>&1 | \ -; RUN: sort -b | FileCheck %s --check-prefixes=LOOP32 +; RUN: sort -b -k 1 | FileCheck %s --check-prefixes=LOOP32 ; ; Single loop nest, not unswitched ; LOOP1: Loop at depth 1 containing: |