diff options
| author | Evan Cheng <evan.cheng@apple.com> | 2010-04-01 06:04:33 +0000 |
|---|---|---|
| committer | Evan Cheng <evan.cheng@apple.com> | 2010-04-01 06:04:33 +0000 |
| commit | 0b592c03bc7cc8c973f5fbda6c149c1b3de2bf84 (patch) | |
| tree | c3bd975c3254d60625b64fcff2c8b918060b6afa /lib/Target/PowerPC/PPCISelLowering.cpp | |
| parent | 6c020ea4ffbba2b403a5e14f937047646a54368f (diff) | |
| download | external_llvm-0b592c03bc7cc8c973f5fbda6c149c1b3de2bf84.zip external_llvm-0b592c03bc7cc8c973f5fbda6c149c1b3de2bf84.tar.gz external_llvm-0b592c03bc7cc8c973f5fbda6c149c1b3de2bf84.tar.bz2 | |
Fix sdisel memcpy, memset, memmove lowering:
1. Makes it possible to lower with floating point loads and stores.
2. Avoid unaligned loads / stores unless it's fast.
3. Fix some memcpy lowering logic bug related to when to optimize a
load from constant string into a constant.
4. Adjust x86 memcpy lowering threshold to make it more sane.
5. Fix x86 target hook so it uses vector and floating point memory
ops more effectively.
rdar://7774704
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100090 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/PowerPC/PPCISelLowering.cpp')
| -rw-r--r-- | lib/Target/PowerPC/PPCISelLowering.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Target/PowerPC/PPCISelLowering.cpp b/lib/Target/PowerPC/PPCISelLowering.cpp index 2c072c1..d00fbff 100644 --- a/lib/Target/PowerPC/PPCISelLowering.cpp +++ b/lib/Target/PowerPC/PPCISelLowering.cpp @@ -5539,8 +5539,8 @@ PPCTargetLowering::isOffsetFoldingLegal(const GlobalAddressSDNode *GA) const { return false; } -EVT PPCTargetLowering::getOptimalMemOpType(uint64_t Size, unsigned Align, - bool isSrcConst, bool isSrcStr, +EVT PPCTargetLowering::getOptimalMemOpType(uint64_t Size, + unsigned DstAlign, unsigned SrcAlign, SelectionDAG &DAG) const { if (this->PPCSubTarget.isPPC64()) { return MVT::i64; |
