mirror of
https://github.com/openjdk/jdk.git
synced 2026-01-28 03:58:21 +00:00
JDK-8374852: fix macro expansion for OpaqueCheck
This commit is contained in:
parent
b028198173
commit
b79738c365
@ -2555,6 +2555,7 @@ void PhaseMacroExpand::eliminate_opaque_looplimit_macro_nodes() {
|
||||
#ifdef ASSERT
|
||||
_igvn.replace_node(n, n->in(1));
|
||||
#else
|
||||
bool is_positive = n->as_OpaqueCheck()->is_positive();
|
||||
_igvn.replace_node(n, _igvn.intcon(is_positive?1:0));
|
||||
#endif
|
||||
success = true;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user