[LLVMbugs] [Bug 2163] Codegen illegally reorders division by zero before function call

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Wed May 6 10:46:08 PDT 2009


Dan Gohman <gohman at apple.com> changed:

           What    |Removed                     |Added
                 CC|                            |gohman at apple.com
             Status|RESOLVED                    |REOPENED
         Resolution|WORKSFORME                  |

--- Comment #5 from Dan Gohman <gohman at apple.com>  2009-05-06 12:45:56 ---
Here's a new testcase which still reproduces the problem:

declare i32 @x()

define i32 @foo(i32 %a, i32 %b) nounwind {
        %t0 = tail call i32 @x() nounwind
        %t1 = sdiv i32 %a, %b
        ret i32 %t1

Currently the div is scheduled before the call on x86 and x86-64.

Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

More information about the llvm-bugs mailing list