Skip to content
Commit 6597c28d authored by Richard Henderson's avatar Richard Henderson
Browse files

target/openrisc: Optimize for r0 being zero



The HW does not special-case r0, but the ABI specifies that r0 should
contain 0.  If we expose this fact to the optimizer, we can simplify
a lot of the generated code.  We must of course verify that r0==0, but
that is trivial to do with a TB flag.

Signed-off-by: default avatarRichard Henderson <rth@twiddle.net>
parent a01deb36
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment