diff options
| author | Chris Lattner <sabre@nondot.org> | 2008-01-10 00:30:57 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2008-01-10 00:30:57 +0000 |
| commit | 9c4428b217eca38e06c7bc01c8a6e1b248df326f (patch) | |
| tree | 9d7d9ce943b8820359fb7170e971e8cb24b98d16 /include/llvm/Target | |
| parent | 314286f6bd7e7d1c4833866831aa576583c2d7b3 (diff) | |
Fix PR1845 and rdar://5676945. Generic vectors smaller
than hardware supported type will be scalarized, so we
can infer their alignment from that info.
We now codegen pr1845 into:
_boolVectorSelect:
lbz r2, 0(r3)
stb r2, -16(r1)
blr
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@45796 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Target')
| -rw-r--r-- | include/llvm/Target/TargetData.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/llvm/Target/TargetData.h b/include/llvm/Target/TargetData.h index a3f2dbccd9..0bcd4019b7 100644 --- a/include/llvm/Target/TargetData.h +++ b/include/llvm/Target/TargetData.h @@ -92,7 +92,7 @@ private: void setAlignment(AlignTypeEnum align_type, unsigned char abi_align, unsigned char pref_align, uint32_t bit_width); unsigned getAlignmentInfo(AlignTypeEnum align_type, uint32_t bit_width, - bool ABIAlign) const; + bool ABIAlign, const Type *Ty) const; //! Internal helper method that returns requested alignment for type. unsigned char getAlignment(const Type *Ty, bool abi_or_pref) const; |
