[PATCH] D112545: [x86] enhance mayFoldLoad to check alignment
Craig Topper via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Oct 26 08:19:48 PDT 2021
craig.topper 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)
----------------
What about Subtarget->hasSSEUnalignedMem()?
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D112545/new/
https://reviews.llvm.org/D112545
More information about the llvm-commits
mailing list