From a3fb49cd851cd3b593fc653dc3ba4434c2e1232f Mon Sep 17 00:00:00 2001 From: Quentin Colombet Date: Tue, 18 Jun 2013 20:14:39 +0000 Subject: 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. 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 --- test/CodeGen/X86/2008-01-08-SchedulerCrash.ll | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/CodeGen/X86/2008-01-08-SchedulerCrash.ll') 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 ; [#uses=3] + %tmp955 = sdiv i32 %offset, 2 ; [#uses=3] %tmp961 = getelementptr %struct.indexentry* null, i32 %tmp955, i32 0 ; [#uses=1] br i1 %cond, label %bb986, label %bb967 -- cgit v1.2.3