diff options
author | Quentin Colombet <qcolombet@apple.com> | 2013-06-18 20:14:39 +0000 |
---|---|---|
committer | Quentin Colombet <qcolombet@apple.com> | 2013-06-18 20:14:39 +0000 |
commit | a3fb49cd851cd3b593fc653dc3ba4434c2e1232f (patch) | |
tree | 0f949913fa9c0c45d128a5d477cf2bde7ca8b1b9 /test/CodeGen/X86/2008-01-08-SchedulerCrash.ll | |
parent | 571dd98ea4d6bf911c3b46a20ca3b5e3b341b21f (diff) | |
download | llvm-a3fb49cd851cd3b593fc653dc3ba4434c2e1232f.tar.gz llvm-a3fb49cd851cd3b593fc653dc3ba4434c2e1232f.tar.bz2 llvm-a3fb49cd851cd3b593fc653dc3ba4434c2e1232f.tar.xz |
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/2008-01-08-SchedulerCrash.ll')
-rw-r--r-- | test/CodeGen/X86/2008-01-08-SchedulerCrash.ll | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/CodeGen/X86/2008-01-08-SchedulerCrash.ll b/test/CodeGen/X86/2008-01-08-SchedulerCrash.ll index 39af9319c8..9b9b781cfa 100644 --- a/test/CodeGen/X86/2008-01-08-SchedulerCrash.ll +++ b/test/CodeGen/X86/2008-01-08-SchedulerCrash.ll @@ -19,7 +19,7 @@ bb917: ; preds = %entry ret i32 0 bb951: ; preds = %bb986, %entry - %tmp955 = sdiv i32 0, 2 ; <i32> [#uses=3] + %tmp955 = sdiv i32 %offset, 2 ; <i32> [#uses=3] %tmp961 = getelementptr %struct.indexentry* null, i32 %tmp955, i32 0 ; <i32*> [#uses=1] br i1 %cond, label %bb986, label %bb967 |