8238683: C2: Remove Use24BitFP and Use24BitFPMode flags

Reviewed-by: thartmann, neliasso
This commit is contained in:
Vladimir Ivanov 2020-02-11 14:55:44 +03:00
parent 74e68b4092
commit 5e9dc46d21
4 changed files with 26 additions and 29 deletions

View file

@ -1094,7 +1094,7 @@ void Compile::Init(int aliaslevel) {
_matcher = NULL; // filled in later
_cfg = NULL; // filled in later
set_24_bit_selection_and_mode(Use24BitFP, false);
IA32_ONLY( set_24_bit_selection_and_mode(true, false); )
_node_note_array = NULL;
_default_node_notes = NULL;
@ -3713,14 +3713,16 @@ bool Compile::final_graph_reshaping() {
}
}
#ifdef IA32
// If original bytecodes contained a mixture of floats and doubles
// check if the optimizer has made it homogenous, item (3).
if( Use24BitFPMode && Use24BitFP && UseSSE == 0 &&
if (UseSSE == 0 &&
frc.get_float_count() > 32 &&
frc.get_double_count() == 0 &&
(10 * frc.get_call_count() < frc.get_float_count()) ) {
set_24_bit_selection_and_mode( false, true );
set_24_bit_selection_and_mode(false, true);
}
#endif // IA32
set_java_calls(frc.get_java_call_count());
set_inner_loops(frc.get_inner_loop_count());