mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-26 06:14:49 +02:00
6758234: if (k cond (a ? : b: c)) returns reversed answer if k is constant and b and c are longs
Reviewed-by: kvn, jrose
This commit is contained in:
parent
40a81c63b8
commit
baa4663714
2 changed files with 40 additions and 2 deletions
|
@ -327,8 +327,6 @@ class BlockMerger: public BlockClosure {
|
|||
BlockBegin* fsux = if_->fsux();
|
||||
if (swapped) {
|
||||
cond = Instruction::mirror(cond);
|
||||
tsux = if_->fsux();
|
||||
fsux = if_->tsux();
|
||||
}
|
||||
|
||||
BlockBegin* tblock = tval->compare(cond, con, tsux, fsux);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue