Skip to content

Commit

Permalink
Merge commit '65e5006962bd' from llvm.org/master into apple/main
Browse files Browse the repository at this point in the history
  • Loading branch information
git apple-llvm automerger committed Oct 19, 2020
2 parents 91ac586 + 65e5006 commit 2c0354c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
1 change: 1 addition & 0 deletions llvm/test/Transforms/LoopVectorize/X86/metadata-enable.ll
Expand Up @@ -8,6 +8,7 @@
; RUN: opt < %s -mcpu=corei7 -O1 -loop-vectorize -S -unroll-allow-partial=0 | FileCheck %s --check-prefix=O1VEC2
; RUN: opt < %s -mcpu=corei7 -Oz -loop-vectorize -S -unroll-allow-partial=0 | FileCheck %s --check-prefix=OzVEC2
; RUN: opt < %s -mcpu=corei7 -O3 -unroll-threshold=150 -vectorize-loops=false -S -unroll-allow-partial=0 | FileCheck %s --check-prefix=O3DIS
; RUN: opt < %s -mcpu=corei7 -O1 -loop-vectorize -S -unroll-allow-partial=0 -enable-new-pm=1 | FileCheck %s --check-prefix=O1VEC2

; This file tests the llvm.loop.vectorize.enable metadata forcing
; vectorization even when optimization levels are too low, or when
Expand Down
5 changes: 2 additions & 3 deletions llvm/tools/opt/opt.cpp
Expand Up @@ -759,9 +759,6 @@ int main(int argc, char **argv) {
return 1;
}
SmallVector<StringRef, 4> Passes;
for (const auto &P : PassList) {
Passes.push_back(P->getPassArgument());
}
if (OptLevelO0)
Passes.push_back("default<O0>");
if (OptLevelO1)
Expand All @@ -774,6 +771,8 @@ int main(int argc, char **argv) {
Passes.push_back("default<Os>");
if (OptLevelOz)
Passes.push_back("default<Oz>");
for (const auto &P : PassList)
Passes.push_back(P->getPassArgument());
OutputKind OK = OK_NoOutput;
if (!NoOutput)
OK = OutputAssembly
Expand Down

0 comments on commit 2c0354c

Please sign in to comment.