forked from OSchip/llvm-project
Remove Clang support for '-fvectorize-slp-aggressive' which used LLVM's
basic block vectorizer. This vectorizer has had no known users for many, many years and is completely surpassed by the normal '-fvectorize-slp'-controlled SLP vectorizer in LLVM. Hal proposed this back in 2014 to no objections: http://lists.llvm.org/pipermail/llvm-dev/2014-November/079091.html While this patch completely removes the flag, Joerg is working on a patch that will add it back in a way that warns users and ignores the flag in a clear and well factored way (so that we can keep doing this going forward). Differential Revision: https://reviews.llvm.org/D34846 llvm-svn: 306786
This commit is contained in:
parent
8d0322e612
commit
b853ef9947
|
@ -268,8 +268,6 @@ def vectorize_loops : Flag<["-"], "vectorize-loops">,
|
|||
HelpText<"Run the Loop vectorization passes">;
|
||||
def vectorize_slp : Flag<["-"], "vectorize-slp">,
|
||||
HelpText<"Run the SLP vectorization passes">;
|
||||
def vectorize_slp_aggressive : Flag<["-"], "vectorize-slp-aggressive">,
|
||||
HelpText<"Run the BB vectorization passes">;
|
||||
def dependent_lib : Joined<["--"], "dependent-lib=">,
|
||||
HelpText<"Add dependent library">;
|
||||
def linker_option : Joined<["--"], "linker-option=">,
|
||||
|
|
|
@ -1405,9 +1405,6 @@ def : Flag<["-"], "fno-tree-vectorize">, Alias<fno_vectorize>;
|
|||
def fslp_vectorize : Flag<["-"], "fslp-vectorize">, Group<f_Group>,
|
||||
HelpText<"Enable the superword-level parallelism vectorization passes">;
|
||||
def fno_slp_vectorize : Flag<["-"], "fno-slp-vectorize">, Group<f_Group>;
|
||||
def fslp_vectorize_aggressive : Flag<["-"], "fslp-vectorize-aggressive">, Group<f_Group>,
|
||||
HelpText<"Enable the BB vectorization passes">;
|
||||
def fno_slp_vectorize_aggressive : Flag<["-"], "fno-slp-vectorize-aggressive">, Group<f_Group>;
|
||||
def : Flag<["-"], "ftree-slp-vectorize">, Alias<fslp_vectorize>;
|
||||
def : Flag<["-"], "fno-tree-slp-vectorize">, Alias<fno_slp_vectorize>;
|
||||
def Wlarge_by_value_copy_def : Flag<["-"], "Wlarge-by-value-copy">,
|
||||
|
|
|
@ -179,7 +179,6 @@ CODEGENOPT(RerollLoops , 1, 0) ///< Control whether loops are rerolled.
|
|||
CODEGENOPT(NoUseJumpTables , 1, 0) ///< Set when -fno-jump-tables is enabled.
|
||||
CODEGENOPT(UnsafeFPMath , 1, 0) ///< Allow unsafe floating point optzns.
|
||||
CODEGENOPT(UnwindTables , 1, 0) ///< Emit unwind tables.
|
||||
CODEGENOPT(VectorizeBB , 1, 0) ///< Run basic block vectorizer.
|
||||
CODEGENOPT(VectorizeLoop , 1, 0) ///< Run loop vectorizer.
|
||||
CODEGENOPT(VectorizeSLP , 1, 0) ///< Run SLP vectorizer.
|
||||
|
||||
|
|
|
@ -492,7 +492,6 @@ void EmitAssemblyHelper::CreatePasses(legacy::PassManager &MPM,
|
|||
|
||||
PMBuilder.OptLevel = CodeGenOpts.OptimizationLevel;
|
||||
PMBuilder.SizeLevel = CodeGenOpts.OptimizeSize;
|
||||
PMBuilder.BBVectorize = CodeGenOpts.VectorizeBB;
|
||||
PMBuilder.SLPVectorize = CodeGenOpts.VectorizeSLP;
|
||||
PMBuilder.LoopVectorize = CodeGenOpts.VectorizeLoop;
|
||||
|
||||
|
|
|
@ -4127,11 +4127,6 @@ void Clang::ConstructJob(Compilation &C, const JobAction &JA,
|
|||
options::OPT_fno_slp_vectorize, EnableSLPVec))
|
||||
CmdArgs.push_back("-vectorize-slp");
|
||||
|
||||
// -fno-slp-vectorize-aggressive is default.
|
||||
if (Args.hasFlag(options::OPT_fslp_vectorize_aggressive,
|
||||
options::OPT_fno_slp_vectorize_aggressive, false))
|
||||
CmdArgs.push_back("-vectorize-slp-aggressive");
|
||||
|
||||
if (Arg *A = Args.getLastArg(options::OPT_fshow_overloads_EQ))
|
||||
A->render(Args, CmdArgs);
|
||||
|
||||
|
|
|
@ -672,7 +672,6 @@ static bool ParseCodeGenArgs(CodeGenOptions &Opts, ArgList &Args, InputKind IK,
|
|||
|
||||
Opts.MSVolatile = Args.hasArg(OPT_fms_volatile);
|
||||
|
||||
Opts.VectorizeBB = Args.hasArg(OPT_vectorize_slp_aggressive);
|
||||
Opts.VectorizeLoop = Args.hasArg(OPT_vectorize_loops);
|
||||
Opts.VectorizeSLP = Args.hasArg(OPT_vectorize_slp);
|
||||
|
||||
|
|
|
@ -178,13 +178,6 @@
|
|||
// CHECK-SLP-VECTORIZE: "-vectorize-slp"
|
||||
// CHECK-NO-SLP-VECTORIZE-NOT: "-vectorize-slp"
|
||||
|
||||
// RUN: %clang -### -S -fslp-vectorize-aggressive %s 2>&1 | FileCheck -check-prefix=CHECK-SLP-VECTORIZE-AGG %s
|
||||
// RUN: %clang -### -S -fno-slp-vectorize-aggressive -fslp-vectorize-aggressive %s 2>&1 | FileCheck -check-prefix=CHECK-SLP-VECTORIZE-AGG %s
|
||||
// RUN: %clang -### -S -fno-slp-vectorize-aggressive %s 2>&1 | FileCheck -check-prefix=CHECK-NO-SLP-VECTORIZE-AGG %s
|
||||
// RUN: %clang -### -S -fslp-vectorize-aggressive -fno-slp-vectorize-aggressive %s 2>&1 | FileCheck -check-prefix=CHECK-NO-SLP-VECTORIZE-AGG %s
|
||||
// CHECK-SLP-VECTORIZE-AGG: "-vectorize-slp-aggressive"
|
||||
// CHECK-NO-SLP-VECTORIZE-AGG-NOT: "-vectorize-slp-aggressive"
|
||||
|
||||
// RUN: %clang -### -S -fextended-identifiers %s 2>&1 | FileCheck -check-prefix=CHECK-EXTENDED-IDENTIFIERS %s
|
||||
// RUN: not %clang -### -S -fno-extended-identifiers %s 2>&1 | FileCheck -check-prefix=CHECK-NO-EXTENDED-IDENTIFIERS %s
|
||||
// CHECK-EXTENDED-IDENTIFIERS: "-cc1"
|
||||
|
|
Loading…
Reference in New Issue