mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 15:24:43 +02:00
8141044: C1 should fold (this == null) to false
Reviewed-by: jrose, roland
This commit is contained in:
parent
a38ea495d6
commit
dfb1ed8a19
3 changed files with 9 additions and 4 deletions
|
@ -3089,7 +3089,7 @@ ValueStack* GraphBuilder::state_at_entry() {
|
|||
int idx = 0;
|
||||
if (!method()->is_static()) {
|
||||
// we should always see the receiver
|
||||
state->store_local(idx, new Local(method()->holder(), objectType, idx));
|
||||
state->store_local(idx, new Local(method()->holder(), objectType, idx, true));
|
||||
idx = 1;
|
||||
}
|
||||
|
||||
|
@ -3101,7 +3101,7 @@ ValueStack* GraphBuilder::state_at_entry() {
|
|||
// don't allow T_ARRAY to propagate into locals types
|
||||
if (basic_type == T_ARRAY) basic_type = T_OBJECT;
|
||||
ValueType* vt = as_ValueType(basic_type);
|
||||
state->store_local(idx, new Local(type, vt, idx));
|
||||
state->store_local(idx, new Local(type, vt, idx, false));
|
||||
idx += type->size();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue