aboutsummaryrefslogtreecommitdiffstats
path: root/test/CodeGen/X86/2007-10-12-CoalesceExtSubReg.ll
diff options
context:
space:
mode:
authorQuentin Colombet <qcolombet@apple.com>2013-06-18 20:14:39 +0000
committerQuentin Colombet <qcolombet@apple.com>2013-06-18 20:14:39 +0000
commita3fb49cd851cd3b593fc653dc3ba4434c2e1232f (patch)
tree0f949913fa9c0c45d128a5d477cf2bde7ca8b1b9 /test/CodeGen/X86/2007-10-12-CoalesceExtSubReg.ll
parent571dd98ea4d6bf911c3b46a20ca3b5e3b341b21f (diff)
downloadexternal_llvm-a3fb49cd851cd3b593fc653dc3ba4434c2e1232f.zip
external_llvm-a3fb49cd851cd3b593fc653dc3ba4434c2e1232f.tar.gz
external_llvm-a3fb49cd851cd3b593fc653dc3ba4434c2e1232f.tar.bz2
During SelectionDAG building explicitly set a node to constant zero when the
value is zero. This allows optmizations to kick in more easily. Fix some test cases so that they remain meaningful (i.e., not completely dead coded) when optimizations apply. <rdar://problem/14096009> superfluous multiply by high part of zero-extended value. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@184222 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/X86/2007-10-12-CoalesceExtSubReg.ll')
-rw-r--r--test/CodeGen/X86/2007-10-12-CoalesceExtSubReg.ll6
1 files changed, 4 insertions, 2 deletions
diff --git a/test/CodeGen/X86/2007-10-12-CoalesceExtSubReg.ll b/test/CodeGen/X86/2007-10-12-CoalesceExtSubReg.ll
index 8091bd1..d3a47ae 100644
--- a/test/CodeGen/X86/2007-10-12-CoalesceExtSubReg.ll
+++ b/test/CodeGen/X86/2007-10-12-CoalesceExtSubReg.ll
@@ -7,8 +7,10 @@ entry:
cond_next127: ; preds = %cond_next391, %entry
%v.1 = phi i32 [ undef, %entry ], [ %tmp411, %cond_next391 ] ; <i32> [#uses=1]
%tmp149 = mul i32 0, %v.1 ; <i32> [#uses=0]
- %tmp254 = and i32 0, 15 ; <i32> [#uses=1]
- %tmp256 = and i32 0, 15 ; <i32> [#uses=2]
+ %tmpss = load i32* %ss, align 4 ; <i32> [#uses=1]
+ %tmpbp = load i32* %bp, align 4 ; <i32> [#uses=2]
+ %tmp254 = and i32 %tmpss, 15 ; <i32> [#uses=1]
+ %tmp256 = and i32 %tmpbp, 15 ; <i32> [#uses=2]
br label %cond_next391
cond_next391: ; preds = %cond_next127