[PATCH] D28637: [PPC] Inline expansion of memcmp
Eli Friedman via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Jan 13 11:02:37 PST 2017
efriedma added a comment.
How does this compare to the existing SelectionDAGBuilder::visitMemCmpCall/EmitTargetCodeForMemcmp/etc.?
================
Comment at: lib/CodeGen/CodeGenPrepare.cpp:1992
+ LoadSrc1 = Builder.CreateLoad(Int64Ty, Source1Cast);
+ LoadSrc2 = Builder.CreateLoad(Int64Ty, Source2Cast);
+ Src1List.push_back(LoadSrc1);
----------------
You need to explicitly set the alignment to 1 here.
https://reviews.llvm.org/D28637
More information about the llvm-commits
mailing list