File tree Expand file tree Collapse file tree 2 files changed +5
-11
lines changed
clang/lib/Driver/ToolChains Expand file tree Collapse file tree 2 files changed +5
-11
lines changed Original file line number Diff line number Diff line change @@ -3266,14 +3266,8 @@ void tools::handleVectorizeSLPArgs(const ArgList &Args,
32663266
32673267void tools::handleInterchangeLoopsArgs (const ArgList &Args,
32683268 ArgStringList &CmdArgs) {
3269- // FIXME: instead of relying on shouldEnableVectorizerAtOLevel, we may want to
3270- // implement a separate function to infer loop interchange from opt level.
3271- // For now, enable loop-interchange at the same opt levels as loop-vectorize.
3272- bool EnableInterchange = shouldEnableVectorizerAtOLevel (Args, false );
3273- OptSpecifier InterchangeAliasOption =
3274- EnableInterchange ? options::OPT_O_Group : options::OPT_floop_interchange;
3275- if (Args.hasFlag (options::OPT_floop_interchange, InterchangeAliasOption,
3276- options::OPT_fno_loop_interchange, EnableInterchange))
3269+ if (Args.hasFlag (options::OPT_floop_interchange,
3270+ options::OPT_fno_loop_interchange, false ))
32773271 CmdArgs.push_back (" -floop-interchange" );
32783272}
32793273
Original file line number Diff line number Diff line change 22! RUN: %flang -### -S -fno-loop-interchange %s 2>&1 | FileCheck -check-prefix=CHECK-NO-LOOP-INTERCHANGE %s
33! RUN: %flang -### -S -O0 %s 2>&1 | FileCheck -check-prefix=CHECK-NO-LOOP-INTERCHANGE %s
44! RUN: %flang -### -S -O1 %s 2>&1 | FileCheck -check-prefix=CHECK-NO-LOOP-INTERCHANGE %s
5- ! RUN: %flang -### -S -O2 %s 2>&1 | FileCheck -check-prefix=CHECK-LOOP-INTERCHANGE %s
6- ! RUN: %flang -### -S -O3 %s 2>&1 | FileCheck -check-prefix=CHECK-LOOP-INTERCHANGE %s
7- ! RUN: %flang -### -S -Os %s 2>&1 | FileCheck -check-prefix=CHECK-LOOP-INTERCHANGE %s
5+ ! RUN: %flang -### -S -O2 %s 2>&1 | FileCheck -check-prefix=CHECK-NO- LOOP-INTERCHANGE %s
6+ ! RUN: %flang -### -S -O3 %s 2>&1 | FileCheck -check-prefix=CHECK-NO- LOOP-INTERCHANGE %s
7+ ! RUN: %flang -### -S -Os %s 2>&1 | FileCheck -check-prefix=CHECK-NO- LOOP-INTERCHANGE %s
88! RUN: %flang -### -S -Oz %s 2>&1 | FileCheck -check-prefix=CHECK-NO-LOOP-INTERCHANGE %s
99! CHECK-LOOP-INTERCHANGE: "-floop-interchange"
1010! CHECK-NO-LOOP-INTERCHANGE-NOT: "-floop-interchange"
You can’t perform that action at this time.
0 commit comments