]> granicus.if.org Git - llvm/commitdiff
Add default OptLevel value for createSimpleLoopUnrollPass to fix the build break...
authorDehao Chen <dehao@google.com>
Sat, 18 Feb 2017 06:42:16 +0000 (06:42 +0000)
committerDehao Chen <dehao@google.com>
Sat, 18 Feb 2017 06:42:16 +0000 (06:42 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@295542 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Transforms/Scalar.h

index 237975216f04c1c36c9765b9f52299d70c08f0ee..dbf76c3bbee02b1d2b5587e2ded203ef9ebb65ae 100644 (file)
@@ -185,7 +185,7 @@ Pass *createLoopUnrollPass(int OptLevel = 2, int Threshold = -1, int Count = -1,
                            int AllowPartial = -1, int Runtime = -1,
                            int UpperBound = -1);
 // Create an unrolling pass for full unrolling that uses exact trip count only.
-Pass *createSimpleLoopUnrollPass(int OptLevel);
+Pass *createSimpleLoopUnrollPass(int OptLevel = 2);
 
 //===----------------------------------------------------------------------===//
 //