This patch: * removes the "default" opt level, on the basis that it has no definition and is referred to nowhere in the compiler. * renames the "fastest" level to "none". The resulting set of transformations is unchanged. * renames the "best" level to "speed_and_size". The resulting set of transformations is unchanged. * adds a new level, "speed". This is the same as "speed_and_size" except that it omits transformations aimed only at reducing code size. Currently it omits only the insn shrinking pass.
15 lines
281 B
Plaintext
15 lines
281 B
Plaintext
test compile
|
|
set opt_level=speed_and_size
|
|
target x86_64
|
|
|
|
function u0:0(i8) -> i8 fast {
|
|
ebb0(v0: i8):
|
|
v1 = iconst.i8 0
|
|
v2 = isub v1, v0
|
|
; check: v3 = uextend.i32 v0
|
|
; nextln: v5 = iconst.i32 0
|
|
; nextln = isub v5, v3
|
|
; nextln = ireduce.i8 v4
|
|
return v2
|
|
}
|