mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-22 03:28:35 +00:00
a9f8208852
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. llvm-svn: 44341
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
|
|
}
|