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

Craig Topper via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jun 23 17:49:10 PDT 2020


craig.topper created this revision.
craig.topper added reviewers: echristo, spatel, RKSimon.
Herald added a project: LLVM.

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.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D82423

Files:
  llvm/test/CodeGen/X86/O3-pipeline.ll
  llvm/test/CodeGen/X86/opt-pipeline.ll


Index: llvm/test/CodeGen/X86/opt-pipeline.ll
===================================================================
--- llvm/test/CodeGen/X86/opt-pipeline.ll
+++ 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
 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D82423.272876.patch
Type: text/x-patch
Size: 774 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200624/32c68610/attachment-0001.bin>


More information about the llvm-commits mailing list