[PATCH] D159250: [X86][RFC] Add new option `-m[no-]evex512` to disable ZMM and 64-bit mask instructions for AVX512 features
Simon Pilgrim via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Sep 7 04:14:40 PDT 2023
RKSimon accepted this revision.
RKSimon added a comment.
LGTM with a couple of minors
================
Comment at: clang/lib/CodeGen/Targets/X86.cpp:1493
const llvm::StringMap<bool> &CalleeMap,
QualType Ty, StringRef Feature,
bool IsArgument) {
----------------
Remove Feature argument and hardcode to "avx" now that it only has 1 (avx) caller?
================
Comment at: llvm/lib/Target/X86/X86Subtarget.cpp:275
+ size_t posEVEX512 = FS.rfind("+evex512");
+ size_t posAVX512F = FS.rfind("+avx512");
+
----------------
pengfei wrote:
> skan wrote:
> > Missing f?
> No, it's intentional. Sometimes, feature attributes may not have a full set of AVX512 features. If user only use e.g., "avx512bw", we should make sure "evex512" attached too.
Please add a comment as it looks like a typo.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D159250/new/
https://reviews.llvm.org/D159250
More information about the cfe-commits
mailing list