[PATCH] D88396: [X86] Replace aligned vector move with unaligned move when avx is enabled.

Pengfei Wang via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Oct 9 20:14:21 PDT 2020


pengfei added inline comments.


================
Comment at: llvm/lib/Target/X86/X86UnalignedVectorMoves.cpp:10
+/// \file
+/// This file defines the pass that replace movaps with movups. movups
+/// achieve the same performance as movaps does when the address is aligned.
----------------
Change the comments as well.


================
Comment at: llvm/lib/Target/X86/X86UnalignedVectorMoves.cpp:91
+    for (MachineInstr &MI : MBB)
+      Changed |= (MovapsToMovupsImpl(MI) | MovapdToMovupdImpl(MI) |
+                  MovdqaToMovdquImpl(MI));
----------------
Change `|` to `||`


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D88396



More information about the llvm-commits mailing list