[PATCH] D99565: [X86] Support replacing aligned vector moves with unaligned moves when avx is enabled.

Craig Topper via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Mar 30 00:56:26 PDT 2021


craig.topper added inline comments.


================
Comment at: clang/include/clang/Driver/Options.td:1642
+    Group<f_Group>, Flags<[CoreOption, HelpHidden]>,
+    HelpText<"Enable transforming aligned vector move instruction to "
+             "unaligned vector move.">;
----------------
As far the user is concerned this isn’t a transform. From their perspective it’s always use unaligned move instructions.


================
Comment at: llvm/test/CodeGen/X86/avx512vl-unaligned-load-store.ll:6
+define <8 x i32> @test_256_1(i8 * %addr) {
+; CHECK-LABEL: test_256_1:
+; CHECK:       # %bb.0:
----------------
CHECK isn’t a valid prefix for this file


================
Comment at: llvm/test/CodeGen/X86/avx512vl-unaligned-load-store.ll:21
+  %vaddr = bitcast i8* %addr to <8 x i32>*
+  %res = load <8 x i32>, <8 x i32>* %vaddr, align 1
+  ret <8 x i32>%res
----------------
What are the tests with align 1 intended to show?


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D99565/new/

https://reviews.llvm.org/D99565



More information about the llvm-commits mailing list