From c1acc3f764804d25f70d88f937ef9c460143e0f1 Mon Sep 17 00:00:00 2001 From: Dale Johannesen Date: Mon, 11 May 2009 17:15:42 +0000 Subject: Reverse a loop that is counting up to a maximum to count down to 0 instead, under very restricted circumstances. Adjust 4 testcases in which this optimization fires. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@71439 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/CodeGen/X86/2007-11-30-LoadFolding-Bug.ll | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'test/CodeGen/X86/2007-11-30-LoadFolding-Bug.ll') diff --git a/test/CodeGen/X86/2007-11-30-LoadFolding-Bug.ll b/test/CodeGen/X86/2007-11-30-LoadFolding-Bug.ll index df6d76a093..1b36fcec67 100644 --- a/test/CodeGen/X86/2007-11-30-LoadFolding-Bug.ll +++ b/test/CodeGen/X86/2007-11-30-LoadFolding-Bug.ll @@ -1,5 +1,7 @@ ; RUN: llvm-as < %s | llc -march=x86 -mattr=+sse2 -stats |& \ ; RUN: grep {1 .*folded into instructions} +; Increment in loop bb.128.i adjusted to 2, to prevent loop reversal from +; kicking in. declare fastcc void @rdft(i32, i32, double*, i32*, double*) @@ -41,7 +43,7 @@ bb.i28.i: ; preds = %bb.i28.i, %cond_next36.i %tmp1213.i23.i = sitofp i32 %x.0.i21.i to double ; [#uses=1] %tmp15.i24.i = sub double 0.000000e+00, %tmp1213.i23.i ; [#uses=1] %tmp16.i25.i = mul double 0.000000e+00, %tmp15.i24.i ; [#uses=1] - %indvar.next39.i = add i32 %j.0.reg2mem.0.i16.i, 1 ; [#uses=2] + %indvar.next39.i = add i32 %j.0.reg2mem.0.i16.i, 2 ; [#uses=2] %exitcond40.i = icmp eq i32 %indvar.next39.i, %tmp8.i14.i ; [#uses=1] br i1 %exitcond40.i, label %mp_unexp_d2mp.exit29.i, label %bb.i28.i -- cgit v1.2.3