mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-20 19:14:38 +02:00
6959430: Make sure raw loads have control edge
Check that raw loads have control edge Reviewed-by: never, twisti
This commit is contained in:
parent
998865b735
commit
21f481e5dd
7 changed files with 48 additions and 19 deletions
|
@ -2000,6 +2000,17 @@ static void final_graph_reshaping_impl( Node *n, Final_Reshape_Counts &frc ) {
|
|||
}
|
||||
}
|
||||
|
||||
#ifdef ASSERT
|
||||
if( n->is_Mem() ) {
|
||||
Compile* C = Compile::current();
|
||||
int alias_idx = C->get_alias_index(n->as_Mem()->adr_type());
|
||||
assert( n->in(0) != NULL || alias_idx != Compile::AliasIdxRaw ||
|
||||
// oop will be recorded in oop map if load crosses safepoint
|
||||
n->is_Load() && (n->as_Load()->bottom_type()->isa_oopptr() ||
|
||||
LoadNode::is_immutable_value(n->in(MemNode::Address))),
|
||||
"raw memory operations should have control edge");
|
||||
}
|
||||
#endif
|
||||
// Count FPU ops and common calls, implements item (3)
|
||||
switch( nop ) {
|
||||
// Count all float operations that may use FPU
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue