[PATCH] Make SLPVectorizer cost model take credit for instructions that will be erased
Arnold Schwaighofer
aschwaighofer at apple.com
Mon Mar 24 13:12:24 PDT 2014
Yes it will be used, the target information is file (module) scope information.
================
Comment at: test/Transforms/SLPVectorizer/X86/insert-element-build-vector.ll:199
@@ +198,3 @@
+
+; RUN: opt -S -slp-vectorizer -slp-threshold=0 < %s | FileCheck %s
+
----------------
You need to use the ‘-check-prefix’ option to FileCheck if you want to test a different invocation in the same file. See also http://llvm.org/docs/CommandGuide/FileCheck.html
Something like:
; RUN: opt -S -slp-vectorizer -slp-threshold=0 < %s | FileCheck %s -check-prefix=ZEROTHRES
And later:
; ZEROTHRES-LABEL: @take_credit(
; ZEROTHRES-CHECK: %1 = fadd <4 x float> %a, %b
http://llvm-reviews.chandlerc.com/D3160
More information about the llvm-commits
mailing list