mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-20 11:29:24 +00:00
optimized. This avoids creating illegal divisions when the combiner is running after legalize; this fixes PR1815. Also, it produces better code in the included testcase by avoiding the subtract and multiply when the division isn't optimized. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@44341 91177308-0d34-0410-b5e6-96231b3b80d8
7 lines
127 B
LLVM
7 lines
127 B
LLVM
; RUN: llvm-as < %s | llc -march=x86 | not grep mul
|
|
|
|
define i8 @foo(i8 %tmp325) {
|
|
%t546 = urem i8 %tmp325, 37
|
|
ret i8 %t546
|
|
}
|