Sorry about the churn. One more change to getOptimalMemOpType() hook. Did I
authorEvan Cheng <evan.cheng@apple.com>
Wed, 12 Dec 2012 02:34:41 +0000 (02:34 +0000)
committerEvan Cheng <evan.cheng@apple.com>
Wed, 12 Dec 2012 02:34:41 +0000 (02:34 +0000)
commit946a3a9f22c967d5432eaab5fa464b91343477cd
tree06bf5031f4317c9c0e420a0d3de5636d592b1a7b
parent2ab2421a4e5736d6bacf93b59c02c65765970ebd
Sorry about the churn. One more change to getOptimalMemOpType() hook. Did I
mention the inline memcpy / memset expansion code is a mess?

This patch split the ZeroOrLdSrc argument into two: IsMemset and ZeroMemset.
The first indicates whether it is expanding a memset or a memcpy / memmove.
The later is whether the memset is a memset of zero. It's totally possible
(likely even) that targets may want to do different things for memcpy and
memset of zero.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@169959 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Target/TargetLowering.h
lib/CodeGen/SelectionDAG/SelectionDAG.cpp
lib/Target/ARM/ARMISelLowering.cpp
lib/Target/ARM/ARMISelLowering.h
lib/Target/Mips/MipsISelLowering.cpp
lib/Target/Mips/MipsISelLowering.h
lib/Target/PowerPC/PPCISelLowering.cpp
lib/Target/PowerPC/PPCISelLowering.h
lib/Target/X86/X86ISelLowering.cpp
lib/Target/X86/X86ISelLowering.h