[InstCombine] Use getDestAlignment in SimplifyMemSet (NFC)

Summary:
Small NFC change to change the name of the function used getting and setting
the alignment of a memset.

llvm-svn: 324148
This commit is contained in:
Daniel Neilson 2018-02-02 22:03:03 +00:00
parent fae8788cfa
commit 38af2eed51

View File

@ -265,8 +265,8 @@ Instruction *InstCombiner::SimplifyMemTransfer(MemIntrinsic *MI) {
Instruction *InstCombiner::SimplifyMemSet(MemSetInst *MI) {
unsigned Alignment = getKnownAlignment(MI->getDest(), DL, MI, &AC, &DT);
if (MI->getAlignment() < Alignment) {
MI->setAlignment(Alignment);
if (MI->getDestAlignment() < Alignment) {
MI->setDestAlignment(Alignment);
return MI;
}