[llvm] 1a4f888 - [X86] Rename O3-pipeline.ll to opt-pipeline.ll and add O1/O2 command lines

Craig Topper via llvm-commits llvm-commits at lists.llvm.org
Wed Jun 24 11:10:38 PDT 2020


Author: Craig Topper
Date: 2020-06-24T11:09:50-07:00
New Revision: 1a4f8889800a8c80819602725c5ce509ded2d451

URL: https://github.com/llvm/llvm-project/commit/1a4f8889800a8c80819602725c5ce509ded2d451
DIFF: https://github.com/llvm/llvm-project/commit/1a4f8889800a8c80819602725c5ce509ded2d451.diff

LOG: [X86] Rename O3-pipeline.ll to opt-pipeline.ll and add O1/O2 command lines

Eric Cristopher asked me about possibly disabling some passes at
-O1/Og. Figured a good first step was to test all the pipelines.
They all appear to be the same for now. Hoping we can use FileCheck
prefixes for differences to avoid repeating the contents 3 times.

Added: 
    llvm/test/CodeGen/X86/opt-pipeline.ll

Modified: 
    

Removed: 
    llvm/test/CodeGen/X86/O3-pipeline.ll


################################################################################
diff  --git a/llvm/test/CodeGen/X86/O3-pipeline.ll b/llvm/test/CodeGen/X86/opt-pipeline.ll
similarity index 97%
rename from llvm/test/CodeGen/X86/O3-pipeline.ll
rename to llvm/test/CodeGen/X86/opt-pipeline.ll
index c91b8143e09c..2aa88abd2db8 100644
--- a/llvm/test/CodeGen/X86/O3-pipeline.ll
+++ b/llvm/test/CodeGen/X86/opt-pipeline.ll
@@ -1,5 +1,9 @@
 ; When EXPENSIVE_CHECKS are enabled, the machine verifier appears between each
 ; pass. Ignore it with 'grep -v'.
+; RUN: llc -mtriple=x86_64-- -O1 -debug-pass=Structure < %s -o /dev/null 2>&1 \
+; RUN:   | grep -v 'Verify generated machine code' | FileCheck %s
+; RUN: llc -mtriple=x86_64-- -O2 -debug-pass=Structure < %s -o /dev/null 2>&1 \
+; RUN:   | grep -v 'Verify generated machine code' | FileCheck %s
 ; RUN: llc -mtriple=x86_64-- -O3 -debug-pass=Structure < %s -o /dev/null 2>&1 \
 ; RUN:   | grep -v 'Verify generated machine code' | FileCheck %s
 


        


More information about the llvm-commits mailing list