Skip to content

Commit 3637660

Browse files
sunny868TobiHartmann
authored andcommittedDec 19, 2022
8298813: [C2] Converting double to float cause a loss of precision and resulting crypto.aes scores fluctuate
Reviewed-by: thartmann
1 parent 5e678f7 commit 3637660

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎src/hotspot/share/opto/chaitin.hpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -478,7 +478,7 @@ class PhaseChaitin : public PhaseRegAlloc {
478478

479479
Block **_blks; // Array of blocks sorted by frequency for coalescing
480480

481-
float _high_frequency_lrg; // Frequency at which LRG will be spilled for debug info
481+
double _high_frequency_lrg; // Frequency at which LRG will be spilled for debug info
482482

483483
#ifndef PRODUCT
484484
bool _trace_spilling;
@@ -495,7 +495,7 @@ class PhaseChaitin : public PhaseRegAlloc {
495495
// Do all the real work of allocate
496496
void Register_Allocate();
497497

498-
float high_frequency_lrg() const { return _high_frequency_lrg; }
498+
double high_frequency_lrg() const { return _high_frequency_lrg; }
499499

500500
// Used when scheduling info generated, not in general register allocation
501501
bool _scheduling_info_generated;

0 commit comments

Comments
 (0)