From: Evan Cheng Date: Wed, 9 Jul 2008 06:38:06 +0000 (+0000) Subject: Missed alignment argument on stores lowered from memcpy. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=1afe5c3ff8f37a94e47379ff9535b5e03faca020;p=oota-llvm.git Missed alignment argument on stores lowered from memcpy. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@53281 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/SelectionDAG/SelectionDAG.cpp b/lib/CodeGen/SelectionDAG/SelectionDAG.cpp index a82f6dee952..5d814ef0c90 100644 --- a/lib/CodeGen/SelectionDAG/SelectionDAG.cpp +++ b/lib/CodeGen/SelectionDAG/SelectionDAG.cpp @@ -2813,7 +2813,7 @@ static SDOperand getMemcpyLoadsAndStores(SelectionDAG &DAG, Value = getMemsetStringVal(VT, DAG, TLI, Str, SrcOff); Store = DAG.getStore(Chain, Value, getMemBasePlusOffset(Dst, DstOff, DAG), - DstSV, DstSVOff + DstOff); + DstSV, DstSVOff + DstOff, false, DstAlign); } else { Value = DAG.getLoad(VT, Chain, getMemBasePlusOffset(Src, SrcOff, DAG),