Mercurial > hg > truffle
comparison graal/com.oracle.graal.lir/src/com/oracle/graal/lir/StandardOp.java @ 21218:ca85b783309c
Add LabelOp.isPhiIn().
author | Josef Eisl <josef.eisl@jku.at> |
---|---|
date | Thu, 23 Apr 2015 14:35:28 +0200 |
parents | 7223cb16dfa6 |
children | 0bb06deee33b |
comparison
equal
deleted
inserted
replaced
21217:7223cb16dfa6 | 21218:ca85b783309c |
---|---|
21 * questions. | 21 * questions. |
22 */ | 22 */ |
23 package com.oracle.graal.lir; | 23 package com.oracle.graal.lir; |
24 | 24 |
25 import static com.oracle.graal.lir.LIRInstruction.OperandFlag.*; | 25 import static com.oracle.graal.lir.LIRInstruction.OperandFlag.*; |
26 import static com.oracle.graal.lir.LIRValueUtil.*; | |
26 | 27 |
27 import java.util.*; | 28 import java.util.*; |
28 | 29 |
29 import com.oracle.graal.api.code.*; | 30 import com.oracle.graal.api.code.*; |
30 import com.oracle.graal.api.meta.*; | 31 import com.oracle.graal.api.meta.*; |
111 } | 112 } |
112 | 113 |
113 public Label getLabel() { | 114 public Label getLabel() { |
114 return label; | 115 return label; |
115 } | 116 } |
117 | |
118 /** | |
119 * @return true if this label acts as a PhiIn. | |
120 */ | |
121 public boolean isPhiIn() { | |
122 return getIncomingSize() > 0 && isVariable(getIncomingValue(0)); | |
123 } | |
116 } | 124 } |
117 | 125 |
118 /** | 126 /** |
119 * LIR operation that is an unconditional jump to a {@link #destination()}. | 127 * LIR operation that is an unconditional jump to a {@link #destination()}. |
120 */ | 128 */ |