[all-commits] [llvm/llvm-project] 993bdb: [X86]Support options -mno-gather -mno-scatter
XinWang10 via All-commits
all-commits at lists.llvm.org
Thu Aug 17 23:02:49 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 993bdb047c90e9b85fb91578349a9faf4f6a853d
https://github.com/llvm/llvm-project/commit/993bdb047c90e9b85fb91578349a9faf4f6a853d
Author: XinWang10 <xin10.wang at intel.com>
Date: 2023-08-17 (Thu, 17 Aug 2023)
Changed paths:
M clang/include/clang/Driver/Options.td
M clang/lib/Driver/ToolChains/Arch/X86.cpp
A clang/test/Driver/x86-no-gather-no-scatter.cpp
M llvm/lib/Target/X86/X86.td
M llvm/lib/Target/X86/X86TargetTransformInfo.cpp
M llvm/lib/Target/X86/X86TargetTransformInfo.h
A llvm/test/CodeGen/X86/x86-prefer-no-gather-no-scatter.ll
Log Message:
-----------
[X86]Support options -mno-gather -mno-scatter
Gather instructions could lead to security issues, details please refer to https://www.intel.com/content/www/us/en/developer/articles/technical/software-security-guidance/technical-documentation/gather-data-sampling.html.
This supported options -mno-gather and -mno-scatter, which could avoid generating gather/scatter instructions in backend except using intrinsics or inline asms.
Reviewed By: pengfei
Differential Revision: https://reviews.llvm.org/D157680
More information about the All-commits
mailing list