[llvm] [X86] Fix typo: QWORD alignment is greater than 4, not 8 (PR #87819)
via llvm-commits
llvm-commits at lists.llvm.org
Sat Apr 6 04:39:28 PDT 2024
================
@@ -86,7 +86,7 @@ SDValue X86SelectionDAGInfo::EmitTargetCodeForMemset(
ValReg = X86::EAX;
Val = (Val << 8) | Val;
Val = (Val << 16) | Val;
- if (Subtarget.is64Bit() && Alignment > Align(8)) { // QWORD aligned
+ if (Subtarget.is64Bit() && Alignment > Align(4)) { // QWORD aligned
----------------
AtariDreams wrote:
I'm trying to mimic the style of the function I'm modifying (which does > Align(2) but I guess that also works.
https://github.com/llvm/llvm-project/pull/87819
More information about the llvm-commits
mailing list