Fix test that was failing because we were optimizing the program better than expected :)
authorChris Lattner <sabre@nondot.org>
Thu, 11 Dec 2003 21:06:43 +0000 (21:06 +0000)
committerChris Lattner <sabre@nondot.org>
Thu, 11 Dec 2003 21:06:43 +0000 (21:06 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10404 91177308-0d34-0410-b5e6-96231b3b80d8

test/Transforms/LICM/2003-08-04-TrappingInstOkHoist.ll

index 3dbd4e7cff847de89cac99d0ef1eea2999ef18f3..bfe6efef6aa046b32c77b08f2f6f146a2e82fd36 100644 (file)
@@ -4,14 +4,14 @@
 ; RUN: llvm-as < %s | opt -licm | llvm-dis | grep -C2 "test" | grep div
 
 %X = global int 0
-declare void %foo()
+declare void %foo(int)
 
 int %test(bool %c) {
        %A = load int *%X
        br label %Loop
 Loop:
-       call void %foo()
        %B = div int 4, %A  ;; Should have hoisted this div!
+       call void %foo(int %B)
         br bool %c, label %Loop, label %Out
 
 Out: