[PATCH] D134982: [X86] Add support for "light" AVX
Phoebe Wang via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Sep 30 20:46:42 PDT 2022
pengfei added a subscriber: echristo.
pengfei added inline comments.
================
Comment at: llvm/lib/Target/X86/X86ISelLowering.cpp:2665
if (Op.size() >= 32 && Subtarget.hasAVX() &&
- (Subtarget.getPreferVectorWidth() >= 256)) {
+ (Subtarget.getPreferVectorWidth() >= 256 || EnableLightAVX)) {
// Although this isn't a well-supported type for AVX1, we'll let
----------------
Here the check for 256 was intended from rG47272217 authored by @echristo.
It looks to me it is the only difference between `prefer-128-bit` and `prefer-256-bit`. So I don't understand why using `-mattr=prefer-128-bit -x86-light-avx=true` rather than `prefer-256-bit`.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D134982/new/
https://reviews.llvm.org/D134982
More information about the llvm-commits
mailing list