Mercurial > hg > graal-compiler
comparison graal/com.oracle.graal.lir.sparc/src/com/oracle/graal/lir/sparc/SPARCControlFlow.java @ 22935:29114298229f
SPARC-specific canonicalization of sub-int compare
author | Stefan Anzinger <stefan.anzinger@oracle.com> |
---|---|
date | Tue, 03 Nov 2015 18:14:26 +0100 |
parents | 1e5e5561ae64 |
children |
comparison
equal
deleted
inserted
replaced
22934:0fbd1d1b9bcd | 22935:29114298229f |
---|---|
177 if (canUseShortBranch(crb, masm, targetPosition)) { | 177 if (canUseShortBranch(crb, masm, targetPosition)) { |
178 emitted = emitShortCompareBranch(crb, masm); | 178 emitted = emitShortCompareBranch(crb, masm); |
179 } | 179 } |
180 if (!emitted) { // No short compare/branch was used, so we go into fallback | 180 if (!emitted) { // No short compare/branch was used, so we go into fallback |
181 emitted = emitLongCompareBranch(crb, masm, true); | 181 emitted = emitLongCompareBranch(crb, masm, true); |
182 masm.nop(); | |
183 emitted = true; | 182 emitted = true; |
184 } | 183 } |
185 } | 184 } |
186 assert emitted; | 185 assert emitted; |
187 } | 186 } |