diff options
author | Lang Hames <lhames@gmail.com> | 2011-10-26 23:50:43 +0000 |
---|---|---|
committer | Lang Hames <lhames@gmail.com> | 2011-10-26 23:50:43 +0000 |
commit | 58dba012b6211d6c155df4f1fd7b7b4df9b6b3f1 (patch) | |
tree | cfb2efb66d76f83128fc078a06b3a3b8edc788b8 /llvm/lib/Target/X86/X86ISelLowering.cpp | |
parent | a486f447339b3747ee647ea2eb4aace5a81fb8a0 (diff) | |
download | bcm5719-llvm-58dba012b6211d6c155df4f1fd7b7b4df9b6b3f1.tar.gz bcm5719-llvm-58dba012b6211d6c155df4f1fd7b7b4df9b6b3f1.zip |
Rename NonScalarIntSafe to something more appropriate.
llvm-svn: 143080
Diffstat (limited to 'llvm/lib/Target/X86/X86ISelLowering.cpp')
-rw-r--r-- | llvm/lib/Target/X86/X86ISelLowering.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/Target/X86/X86ISelLowering.cpp b/llvm/lib/Target/X86/X86ISelLowering.cpp index ce2ef928020..2ec08140db5 100644 --- a/llvm/lib/Target/X86/X86ISelLowering.cpp +++ b/llvm/lib/Target/X86/X86ISelLowering.cpp @@ -1232,7 +1232,7 @@ unsigned X86TargetLowering::getByValTypeAlignment(Type *Ty) const { /// alignment can satisfy any constraint. Similarly if SrcAlign is zero it /// means there isn't a need to check it against alignment requirement, /// probably because the source does not need to be loaded. If -/// 'NonScalarIntSafe' is true, that means it's safe to return a +/// 'IsZeroVal' is true, that means it's safe to return a /// non-scalar-integer type, e.g. empty string source, constant, or loaded /// from memory. 'MemcpyStrSrc' indicates whether the memcpy source is /// constant so it does not need to be loaded. @@ -1241,14 +1241,14 @@ unsigned X86TargetLowering::getByValTypeAlignment(Type *Ty) const { EVT X86TargetLowering::getOptimalMemOpType(uint64_t Size, unsigned DstAlign, unsigned SrcAlign, - bool NonScalarIntSafe, + bool IsZeroVal, bool MemcpyStrSrc, MachineFunction &MF) const { // FIXME: This turns off use of xmm stores for memset/memcpy on targets like // linux. This is because the stack realignment code can't handle certain // cases like PR2962. This should be removed when PR2962 is fixed. const Function *F = MF.getFunction(); - if (NonScalarIntSafe && + if (IsZeroVal && !F->hasFnAttr(Attribute::NoImplicitFloat)) { if (Size >= 16 && (Subtarget->isUnalignedMemAccessFast() || |