[PATCH] D112545: [x86] enhance mayFoldLoad to check alignment

Sanjay Patel via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Oct 26 08:47:18 PDT 2021


spatel marked an inline comment as done.
spatel added inline comments.


================
Comment at: llvm/lib/Target/X86/X86ISelLowering.cpp:5050
+  auto *Ld = cast<LoadSDNode>(Op.getNode());
+  if (!Subtarget.hasAVX() && Ld->getValueSizeInBits(0) == 128 &&
+      Ld->getAlignment() < 16)
----------------
craig.topper wrote:
> What about Subtarget->hasSSEUnalignedMem()?
Ah, forgot about that possibility. I'll add the clause along with another RUN line to test it.


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

https://reviews.llvm.org/D112545



More information about the llvm-commits mailing list