@@ -1404,30 +1404,27 @@ class LIR_OpBranch: public LIR_Op {
1404
1404
1405
1405
private:
1406
1406
LIR_Condition _cond;
1407
- BasicType _type;
1408
1407
Label* _label;
1409
1408
BlockBegin* _block; // if this is a branch to a block, this is the block
1410
1409
BlockBegin* _ublock; // if this is a float-branch, this is the unorderd block
1411
1410
CodeStub* _stub; // if this is a branch to a stub, this is the stub
1412
1411
1413
1412
public:
1414
- LIR_OpBranch (LIR_Condition cond, BasicType type, Label* lbl)
1413
+ LIR_OpBranch (LIR_Condition cond, Label* lbl)
1415
1414
: LIR_Op(lir_branch, LIR_OprFact::illegalOpr, (CodeEmitInfo*) NULL )
1416
1415
, _cond(cond)
1417
- , _type(type)
1418
1416
, _label(lbl)
1419
1417
, _block(NULL )
1420
1418
, _ublock(NULL )
1421
1419
, _stub(NULL ) { }
1422
1420
1423
- LIR_OpBranch (LIR_Condition cond, BasicType type, BlockBegin* block);
1424
- LIR_OpBranch (LIR_Condition cond, BasicType type, CodeStub* stub);
1421
+ LIR_OpBranch (LIR_Condition cond, BlockBegin* block);
1422
+ LIR_OpBranch (LIR_Condition cond, CodeStub* stub);
1425
1423
1426
1424
// for unordered comparisons
1427
- LIR_OpBranch (LIR_Condition cond, BasicType type, BlockBegin* block, BlockBegin* ublock);
1425
+ LIR_OpBranch (LIR_Condition cond, BlockBegin* block, BlockBegin* ublock);
1428
1426
1429
1427
LIR_Condition cond () const { return _cond; }
1430
- BasicType type () const { return _type; }
1431
1428
Label* label () const { return _label; }
1432
1429
BlockBegin* block () const { return _block; }
1433
1430
BlockBegin* ublock () const { return _ublock; }
@@ -2176,23 +2173,25 @@ class LIR_List: public CompilationResourceObj {
2176
2173
2177
2174
// jump is an unconditional branch
2178
2175
void jump (BlockBegin* block) {
2179
- append (new LIR_OpBranch (lir_cond_always, T_ILLEGAL, block));
2176
+ append (new LIR_OpBranch (lir_cond_always, block));
2180
2177
}
2181
2178
void jump (CodeStub* stub) {
2182
- append (new LIR_OpBranch (lir_cond_always, T_ILLEGAL, stub));
2179
+ append (new LIR_OpBranch (lir_cond_always, stub));
2180
+ }
2181
+ void branch (LIR_Condition cond, Label* lbl) {
2182
+ append (new LIR_OpBranch (cond, lbl));
2183
2183
}
2184
- void branch (LIR_Condition cond, BasicType type, Label* lbl) { append (new LIR_OpBranch (cond, type, lbl)); }
2185
- void branch (LIR_Condition cond, BasicType type, BlockBegin* block) {
2186
- assert (type != T_FLOAT && type != T_DOUBLE, " no fp comparisons" );
2187
- append (new LIR_OpBranch (cond, type, block));
2184
+ // Should not be used for fp comparisons
2185
+ void branch (LIR_Condition cond, BlockBegin* block) {
2186
+ append (new LIR_OpBranch (cond, block));
2188
2187
}
2189
- void branch (LIR_Condition cond, BasicType type, CodeStub* stub) {
2190
- assert (type != T_FLOAT && type != T_DOUBLE, " no fp comparisons " );
2191
- append (new LIR_OpBranch (cond, type, stub));
2188
+ // Should not be used for fp comparisons
2189
+ void branch (LIR_Condition cond, CodeStub* stub) {
2190
+ append (new LIR_OpBranch (cond, stub));
2192
2191
}
2193
- void branch (LIR_Condition cond, BasicType type, BlockBegin* block, BlockBegin* unordered) {
2194
- assert (type == T_FLOAT || type == T_DOUBLE, " fp comparisons only " );
2195
- append (new LIR_OpBranch (cond, type, block, unordered));
2192
+ // Should only be used for fp comparisons
2193
+ void branch (LIR_Condition cond, BlockBegin* block, BlockBegin* unordered) {
2194
+ append (new LIR_OpBranch (cond, block, unordered));
2196
2195
}
2197
2196
2198
2197
void shift_left (LIR_Opr value, LIR_Opr count, LIR_Opr dst, LIR_Opr tmp);
0 commit comments