Use a smaller pragma unroll threshold to reduce test execution time.
authorAlexander Potapenko <glider@google.com>
Wed, 21 Jan 2015 13:52:02 +0000 (13:52 +0000)
committerAlexander Potapenko <glider@google.com>
Wed, 21 Jan 2015 13:52:02 +0000 (13:52 +0000)
When opt is compiled with AddressSanitizer it takes more than 30 seconds
to unroll the loop in unroll_1M().

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@226660 91177308-0d34-0410-b5e6-96231b3b80d8

test/Transforms/LoopUnroll/unroll-pragmas.ll

index d53fa49cc9f5f4e133469b9ac3a03d968cb5512f..583155758d10a338f15bb78c6b94b72cc7f179c2 100644 (file)
@@ -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.