diff options
author | Evan Cheng <evan.cheng@apple.com> | 2011-11-28 22:37:34 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2011-11-28 22:37:34 +0000 |
commit | ed1c0c7f5817be939872b462be984534bd48bb9b (patch) | |
tree | ef53597756cecb7f5cfd90c2e9359194a9497a86 /test | |
parent | a483fc8e6f9533317f517f2d03f3a41ec0aee663 (diff) | |
download | llvm-ed1c0c7f5817be939872b462be984534bd48bb9b.tar.gz llvm-ed1c0c7f5817be939872b462be984534bd48bb9b.tar.bz2 llvm-ed1c0c7f5817be939872b462be984534bd48bb9b.tar.xz |
Revert r145273 and fix in SelectionDAG::InferPtrAlignment() instead.
Conservatively returns zero when the GV does not specify an alignment nor is it
initialized. Previously it returns ABI alignment for type of the GV. However, if
the type is a "packed" type, then the under-specified alignments is attached to
the load / store instructions. In that case, the alignment of the type cannot be
trusted.
rdar://10464621
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@145300 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r-- | test/CodeGen/X86/widen_load-1.ll | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/CodeGen/X86/widen_load-1.ll b/test/CodeGen/X86/widen_load-1.ll index a9fd190418..9705d149dd 100644 --- a/test/CodeGen/X86/widen_load-1.ll +++ b/test/CodeGen/X86/widen_load-1.ll @@ -21,7 +21,7 @@ define void @reset(<2 x float>* noalias %garbage1) { store i32 0, i32* %changed, align 4 %r2 = getelementptr float* bitcast ([20 x i64]* @compl to float*), i64 32 ; <float*> [#uses=1] %r3 = bitcast float* %r2 to <2 x float>* ; <<2 x float>*> [#uses=1] - %r4 = load <2 x float>* %r3, align 8 ; <<2 x float>> [#uses=1] + %r4 = load <2 x float>* %r3, align 4 ; <<2 x float>> [#uses=1] call void @killcommon(i32* %changed) br label %"file complex.c, line 34, bb4" |