[LLVMbugs] [Bug 1815] codegen crash without DAG combiner

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Mon Nov 26 15:57:40 PST 2007


Dan Gohman <djg at cray.com> changed:

           What    |Removed                     |Added
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED

--- Comment #4 from Dan Gohman <djg at cray.com>  2007-11-26 17:57:39 ---
The xform is producing a divide only because it expects the divide will be
optimized into something else, so checking for legality of the divide isn't
exactly what's needed.

It looks like LLVM's division-by-integer-constant logic only handles i32 and
i64 right now, so that's why this i8 udiv isn't being optimized.

I fixed the bug by disabling the xform in the case that the division isn't
optimized. When it is optimized, the expanded code is already be legal.

The commit is here:

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