Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
dragonwell11
提交
7916a4d7
D
dragonwell11
项目概览
openanolis
/
dragonwell11
通知
7
Star
2
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
D
dragonwell11
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
7916a4d7
编写于
3月 02, 2020
作者:
S
stefank
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
8240223: Use consistent predicate order in and with PhaseIdealLoop::find_predicate
Reviewed-by: thartmann, neliasso, chagedorn
上级
bbfea276
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
9 addition
and
9 deletion
+9
-9
src/hotspot/share/opto/loopUnswitch.cpp
src/hotspot/share/opto/loopUnswitch.cpp
+2
-2
src/hotspot/share/opto/loopnode.cpp
src/hotspot/share/opto/loopnode.cpp
+7
-7
未找到文件。
src/hotspot/share/opto/loopUnswitch.cpp
浏览文件 @
7916a4d7
...
...
@@ -152,7 +152,7 @@ void PhaseIdealLoop::do_unswitching (IdealLoopTree *loop, Node_List &old_new) {
if
(
predicate
!=
NULL
)
{
entry
=
skip_loop_predicates
(
entry
);
}
if
(
predicate
!=
NULL
&&
UseLoopPredicate
)
{
if
(
predicate
!=
NULL
&&
Use
Profiled
LoopPredicate
)
{
// We may have two predicates, find first.
Node
*
n
=
find_predicate
(
entry
);
if
(
n
!=
NULL
)
{
...
...
@@ -160,7 +160,7 @@ void PhaseIdealLoop::do_unswitching (IdealLoopTree *loop, Node_List &old_new) {
entry
=
skip_loop_predicates
(
entry
);
}
}
if
(
predicate
!=
NULL
&&
Use
Profiled
LoopPredicate
)
{
if
(
predicate
!=
NULL
&&
UseLoopPredicate
)
{
entry
=
find_predicate
(
entry
);
if
(
entry
!=
NULL
)
predicate
=
entry
;
}
...
...
src/hotspot/share/opto/loopnode.cpp
浏览文件 @
7916a4d7
...
...
@@ -2576,22 +2576,22 @@ void PhaseIdealLoop::collect_potentially_useful_predicates(
LoopNode
*
lpn
=
loop
->
_head
->
as_Loop
();
Node
*
entry
=
lpn
->
in
(
LoopNode
::
EntryControl
);
Node
*
predicate_proj
=
find_predicate
(
entry
);
// loop_limit_check first
if
(
predicate_proj
!=
NULL
)
{
// right pattern that can be used by loop predication
if
(
predicate_proj
!=
NULL
)
{
// right pattern that can be used by loop predication
assert
(
entry
->
in
(
0
)
->
in
(
1
)
->
in
(
1
)
->
Opcode
()
==
Op_Opaque1
,
"must be"
);
useful_predicates
.
push
(
entry
->
in
(
0
)
->
in
(
1
)
->
in
(
1
));
// good one
entry
=
skip_loop_predicates
(
entry
);
}
predicate_proj
=
find_predicate
(
entry
);
// Predicate
if
(
predicate_proj
!=
NULL
)
{
useful_predicates
.
push
(
entry
->
in
(
0
)
->
in
(
1
)
->
in
(
1
));
// good one
entry
=
skip_loop_predicates
(
entry
);
}
if
(
UseProfiledLoopPredicate
)
{
predicate_proj
=
find_predicate
(
entry
);
// Predicate
if
(
predicate_proj
!=
NULL
)
{
if
(
predicate_proj
!=
NULL
)
{
useful_predicates
.
push
(
entry
->
in
(
0
)
->
in
(
1
)
->
in
(
1
));
// good one
entry
=
skip_loop_predicates
(
entry
);
}
}
predicate_proj
=
find_predicate
(
entry
);
// Predicate
if
(
predicate_proj
!=
NULL
)
{
useful_predicates
.
push
(
entry
->
in
(
0
)
->
in
(
1
)
->
in
(
1
));
// good one
}
}
if
(
loop
->
_next
)
{
// sibling
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录