From b33b000ac8ec339a795dc33f16213def54d13cf4 Mon Sep 17 00:00:00 2001 From: Alexey Bataev Date: Fri, 5 May 2023 07:58:16 -0700 Subject: [PATCH] [SLP][NFC]Add remark output to the test with the perfect diamond match in vectorbuild nodes, NFC. --- .../SLPVectorizer/X86/crash_clear_undefs.ll | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/llvm/test/Transforms/SLPVectorizer/X86/crash_clear_undefs.ll b/llvm/test/Transforms/SLPVectorizer/X86/crash_clear_undefs.ll index 4eb63cbd44d5a3..5701ec997e7281 100644 --- a/llvm/test/Transforms/SLPVectorizer/X86/crash_clear_undefs.ll +++ b/llvm/test/Transforms/SLPVectorizer/X86/crash_clear_undefs.ll @@ -1,7 +1,18 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; RUN: opt < %s -passes=slp-vectorizer -S -mtriple=x86_64-- -mcpu=corei7 | FileCheck %s +; RUN: opt < %s -passes=slp-vectorizer -S -mtriple=x86_64-- -mcpu=corei7 -pass-remarks-output=%t | FileCheck %s +; RUN: FileCheck %s --input-file=%t --check-prefix=YAML target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" +; YAML-LABEL: --- !Passed +; YAML-NEXT: Pass: slp-vectorizer +; YAML-NEXT: Name: VectorizedList +; YAML-NEXT: Function: foo +; YAML-NEXT: Args: +; YAML-NEXT: - String: 'SLP vectorized with cost ' +; YAML-NEXT: - Cost: '-6' +; YAML-NEXT: - String: ' and with tree size ' +; YAML-NEXT: - TreeSize: '10' +; YAML-NEXT: ... define i1 @foo() { ; CHECK-LABEL: @foo( ; CHECK-NEXT: [[TMP1:%.*]] = load float, ptr null, align 4