forked from OSchip/llvm-project
parent
145a260f75
commit
ea336c797c
|
@ -3326,13 +3326,13 @@ static bool FindOptimalMemOpLowering(std::vector<EVT> &MemOps,
|
|||
const TargetLowering &TLI) {
|
||||
assert((SrcAlign == 0 || SrcAlign >= DstAlign) &&
|
||||
"Expecting memcpy / memset source to meet alignment requirement!");
|
||||
// If 'SrcAlign' is zero, that means the memory operation does not need load
|
||||
// the value, i.e. memset or memcpy from constant string. Otherwise, it's
|
||||
// the inferred alignment of the source. 'DstAlign', on the other hand, is the
|
||||
// specified alignment of the memory operation. If it is zero, that means
|
||||
// it's possible to change the alignment of the destination. 'MemcpyStrSrc'
|
||||
// indicates whether the memcpy source is constant so it does not need to be
|
||||
// loaded.
|
||||
// If 'SrcAlign' is zero, that means the memory operation does not need to
|
||||
// load the value, i.e. memset or memcpy from constant string. Otherwise,
|
||||
// it's the inferred alignment of the source. 'DstAlign', on the other hand,
|
||||
// is the specified alignment of the memory operation. If it is zero, that
|
||||
// means it's possible to change the alignment of the destination.
|
||||
// 'MemcpyStrSrc' indicates whether the memcpy source is constant so it does
|
||||
// not need to be loaded.
|
||||
EVT VT = TLI.getOptimalMemOpType(Size, DstAlign, SrcAlign,
|
||||
NonScalarIntSafe, MemcpyStrSrc,
|
||||
DAG.getMachineFunction());
|
||||
|
|
Loading…
Reference in New Issue