mirror of
https://github.com/openjdk/jdk.git
synced 2026-05-21 19:08:31 +00:00
8233788: Remove useless asserts in PhaseCFG::insert_anti_dependences
Removed useless asserts. Reviewed-by: kvn
This commit is contained in:
parent
61a6ef79ae
commit
f225f7cd0b
@ -1653,6 +1653,7 @@ const TypePtr *Compile::flatten_alias_type( const TypePtr *tj ) const {
|
||||
}
|
||||
|
||||
void Compile::AliasType::Init(int i, const TypePtr* at) {
|
||||
assert(AliasIdxTop <= i && i < Compile::current()->_max_alias_types, "Invalid alias index");
|
||||
_index = i;
|
||||
_adr_type = at;
|
||||
_field = NULL;
|
||||
|
||||
@ -510,6 +510,7 @@ Block* PhaseCFG::insert_anti_dependences(Block* LCA, Node* load, bool verify) {
|
||||
// do not need anti-dependence edges.
|
||||
int load_alias_idx = C->get_alias_index(load->adr_type());
|
||||
#ifdef ASSERT
|
||||
assert(Compile::AliasIdxTop <= load_alias_idx && load_alias_idx < C->num_alias_types(), "Invalid alias index");
|
||||
if (load_alias_idx == Compile::AliasIdxBot && C->AliasLevel() > 0 &&
|
||||
(PrintOpto || VerifyAliases ||
|
||||
(PrintMiscellaneous && (WizardMode || Verbose)))) {
|
||||
@ -522,18 +523,6 @@ Block* PhaseCFG::insert_anti_dependences(Block* LCA, Node* load, bool verify) {
|
||||
if (VerifyAliases) assert(load_alias_idx != Compile::AliasIdxBot, "");
|
||||
}
|
||||
#endif
|
||||
assert(load_alias_idx || (load->is_Mach() && load->as_Mach()->ideal_Opcode() == Op_StrComp),
|
||||
"String compare is only known 'load' that does not conflict with any stores");
|
||||
assert(load_alias_idx || (load->is_Mach() && load->as_Mach()->ideal_Opcode() == Op_StrEquals),
|
||||
"String equals is a 'load' that does not conflict with any stores");
|
||||
assert(load_alias_idx || (load->is_Mach() && load->as_Mach()->ideal_Opcode() == Op_StrIndexOf),
|
||||
"String indexOf is a 'load' that does not conflict with any stores");
|
||||
assert(load_alias_idx || (load->is_Mach() && load->as_Mach()->ideal_Opcode() == Op_StrIndexOfChar),
|
||||
"String indexOfChar is a 'load' that does not conflict with any stores");
|
||||
assert(load_alias_idx || (load->is_Mach() && load->as_Mach()->ideal_Opcode() == Op_AryEq),
|
||||
"Arrays equals is a 'load' that does not conflict with any stores");
|
||||
assert(load_alias_idx || (load->is_Mach() && load->as_Mach()->ideal_Opcode() == Op_HasNegatives),
|
||||
"HasNegatives is a 'load' that does not conflict with any stores");
|
||||
|
||||
if (!C->alias_type(load_alias_idx)->is_rewritable()) {
|
||||
// It is impossible to spoil this load by putting stores before it,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user