diff options
author | Craig Topper <craig.topper@gmail.com> | 2012-12-10 08:12:29 +0000 |
---|---|---|
committer | Craig Topper <craig.topper@gmail.com> | 2012-12-10 08:12:29 +0000 |
commit | 48b509c77318cc6e753513ca5dcdd67e18094235 (patch) | |
tree | 13e6e855eee19ac3ed2f4600388ff3816fba8700 /test/CodeGen/X86/vec_zero.ll | |
parent | cbc478ebc1f93df073f5883dda561995e15f6f46 (diff) | |
download | external_llvm-48b509c77318cc6e753513ca5dcdd67e18094235.zip external_llvm-48b509c77318cc6e753513ca5dcdd67e18094235.tar.gz external_llvm-48b509c77318cc6e753513ca5dcdd67e18094235.tar.bz2 |
Teach DAG combine to handle vector add/sub with vectors of all 0s.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@169727 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/X86/vec_zero.ll')
-rw-r--r-- | test/CodeGen/X86/vec_zero.ll | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/CodeGen/X86/vec_zero.ll b/test/CodeGen/X86/vec_zero.ll index 682a0df..c3ea0ad 100644 --- a/test/CodeGen/X86/vec_zero.ll +++ b/test/CodeGen/X86/vec_zero.ll @@ -13,7 +13,7 @@ define void @foo(<4 x float>* %P) { ; CHECK: pxor define void @bar(<4 x i32>* %P) { %T = load <4 x i32>* %P ; <<4 x i32>> [#uses=1] - %S = add <4 x i32> zeroinitializer, %T ; <<4 x i32>> [#uses=1] + %S = sub <4 x i32> zeroinitializer, %T ; <<4 x i32>> [#uses=1] store <4 x i32> %S, <4 x i32>* %P ret void } |