Skip to content

Commit c5fabac

Browse files
authored
[X86][Driver] Move mno-gather/mno-scatter from m_x86_Features_Group to m_Group. NFCI (#65457)
m_x86_Features_Group always turn `mno-xxxx` into `-target-feature -xxxx`. In this case, we don't have `-gather/-scatter` but `+prefer-no-gather/scatter`. This patch solves unexpected warning when using `mno-gather/mno-scatter`: ``` '-gather' is not a recognized feature for this target (ignoring feature) '-scatter' is not a recognized feature for this target (ignoring feature) ```
1 parent 74f985b commit c5fabac

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clang/include/clang/Driver/Options.td

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5846,9 +5846,9 @@ def mretpoline_external_thunk : Flag<["-"], "mretpoline-external-thunk">, Group<
58465846
def mno_retpoline_external_thunk : Flag<["-"], "mno-retpoline-external-thunk">, Group<m_x86_Features_Group>;
58475847
def mvzeroupper : Flag<["-"], "mvzeroupper">, Group<m_x86_Features_Group>;
58485848
def mno_vzeroupper : Flag<["-"], "mno-vzeroupper">, Group<m_x86_Features_Group>;
5849-
def mno_gather : Flag<["-"], "mno-gather">, Group<m_x86_Features_Group>,
5849+
def mno_gather : Flag<["-"], "mno-gather">, Group<m_Group>,
58505850
HelpText<"Disable generation of gather instructions in auto-vectorization(x86 only)">;
5851-
def mno_scatter : Flag<["-"], "mno-scatter">, Group<m_x86_Features_Group>,
5851+
def mno_scatter : Flag<["-"], "mno-scatter">, Group<m_Group>,
58525852
HelpText<"Disable generation of scatter instructions in auto-vectorization(x86 only)">;
58535853
} // let Flags = [TargetSpecific]
58545854

0 commit comments

Comments
 (0)