diff options
author | Stephen Hines <srhines@google.com> | 2015-03-23 12:10:34 -0700 |
---|---|---|
committer | Stephen Hines <srhines@google.com> | 2015-03-23 12:10:34 -0700 |
commit | ebe69fe11e48d322045d5949c83283927a0d790b (patch) | |
tree | c92f1907a6b8006628a4b01615f38264d29834ea /test/Transforms/LoopUnroll/unroll-pragmas.ll | |
parent | b7d2e72b02a4cb8034f32f8247a2558d2434e121 (diff) | |
download | external_llvm-ebe69fe11e48d322045d5949c83283927a0d790b.zip external_llvm-ebe69fe11e48d322045d5949c83283927a0d790b.tar.gz external_llvm-ebe69fe11e48d322045d5949c83283927a0d790b.tar.bz2 |
Update aosp/master LLVM for rebase to r230699.
Change-Id: I2b5be30509658cb8266be782de0ab24f9099f9b9
Diffstat (limited to 'test/Transforms/LoopUnroll/unroll-pragmas.ll')
-rw-r--r-- | test/Transforms/LoopUnroll/unroll-pragmas.ll | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/test/Transforms/LoopUnroll/unroll-pragmas.ll b/test/Transforms/LoopUnroll/unroll-pragmas.ll index 1ca249d..5831557 100644 --- a/test/Transforms/LoopUnroll/unroll-pragmas.ll +++ b/test/Transforms/LoopUnroll/unroll-pragmas.ll @@ -1,5 +1,5 @@ -; RUN: opt < %s -loop-unroll -S | FileCheck %s -; RUN: opt < %s -loop-unroll -loop-unroll -S | FileCheck %s +; RUN: opt < %s -loop-unroll -pragma-unroll-threshold=1024 -S | FileCheck %s +; RUN: opt < %s -loop-unroll -loop-unroll -pragma-unroll-threshold=1024 -S | FileCheck %s ; ; Run loop unrolling twice to verify that loop unrolling metadata is properly ; removed and further unrolling is disabled after the pass is run once. @@ -54,8 +54,8 @@ for.body: ; preds = %for.body, %entry for.end: ; preds = %for.body ret void } -!1 = metadata !{metadata !1, metadata !2} -!2 = metadata !{metadata !"llvm.loop.unroll.disable"} +!1 = !{!1, !2} +!2 = !{!"llvm.loop.unroll.disable"} ; loop64 has a high enough count that it should *not* be unrolled by ; the default unrolling heuristic. It serves as the control for the @@ -105,8 +105,8 @@ for.body: ; preds = %for.body, %entry for.end: ; preds = %for.body ret void } -!3 = metadata !{metadata !3, metadata !4} -!4 = metadata !{metadata !"llvm.loop.unroll.full"} +!3 = !{!3, !4} +!4 = !{!"llvm.loop.unroll.full"} ; #pragma clang loop unroll_count(4) ; Loop should be unrolled 4 times. @@ -135,8 +135,8 @@ for.body: ; preds = %for.body, %entry for.end: ; preds = %for.body ret void } -!5 = metadata !{metadata !5, metadata !6} -!6 = metadata !{metadata !"llvm.loop.unroll.count", i32 4} +!5 = !{!5, !6} +!6 = !{!"llvm.loop.unroll.count", i32 4} ; #pragma clang loop unroll(full) ; Full unrolling is requested, but loop has a dynamic trip count so @@ -165,7 +165,7 @@ for.body: ; preds = %entry, %for.body for.end: ; preds = %for.body, %entry ret void } -!8 = metadata !{metadata !8, metadata !4} +!8 = !{!8, !4} ; #pragma clang loop unroll_count(4) ; Loop has a dynamic trip count. Unrolling should occur, but no @@ -202,7 +202,7 @@ for.body: ; preds = %entry, %for.body for.end: ; preds = %for.body, %entry ret void } -!9 = metadata !{metadata !9, metadata !6} +!9 = !{!9, !6} ; #pragma clang loop unroll_count(1) ; Loop should not be unrolled @@ -228,8 +228,8 @@ for.body: ; preds = %for.body, %entry for.end: ; preds = %for.body ret void } -!10 = metadata !{metadata !10, metadata !11} -!11 = metadata !{metadata !"llvm.loop.unroll.count", i32 1} +!10 = !{!10, !11} +!11 = !{!"llvm.loop.unroll.count", i32 1} ; #pragma clang loop unroll(full) ; Loop has very high loop count (1 million) and full unrolling was requested. @@ -256,4 +256,4 @@ for.body: ; preds = %for.body, %entry for.end: ; preds = %for.body ret void } -!12 = metadata !{metadata !12, metadata !4} +!12 = !{!12, !4} |