Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
dragonwell8_hotspot
提交
0ad217be
D
dragonwell8_hotspot
项目概览
openanolis
/
dragonwell8_hotspot
通知
2
Star
2
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
D
dragonwell8_hotspot
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
0ad217be
编写于
2月 25, 2009
作者:
N
never
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
6805427: adlc compiler may generate incorrect machnode emission code
Reviewed-by: kvn, twisti
上级
565640a2
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
18 addition
and
10 deletion
+18
-10
src/share/vm/adlc/formssel.cpp
src/share/vm/adlc/formssel.cpp
+12
-7
src/share/vm/adlc/formssel.hpp
src/share/vm/adlc/formssel.hpp
+6
-3
未找到文件。
src/share/vm/adlc/formssel.cpp
浏览文件 @
0ad217be
...
...
@@ -1217,13 +1217,17 @@ void InstructForm::rep_var_format(FILE *fp, const char *rep_var) {
// Seach through operands to determine parameters unique positions.
void
InstructForm
::
set_unique_opnds
()
{
uint
*
uniq_idx
=
NULL
;
u
int
nopnds
=
num_opnds
();
int
nopnds
=
num_opnds
();
uint
num_uniq
=
nopnds
;
uint
i
;
int
i
;
_uniq_idx_length
=
0
;
if
(
nopnds
>
0
)
{
// Allocate index array with reserve.
uniq_idx
=
(
uint
*
)
malloc
(
sizeof
(
uint
)
*
(
nopnds
+
2
));
for
(
i
=
0
;
i
<
nopnds
+
2
;
i
++
)
{
// Allocate index array. Worst case we're mapping from each
// component back to an index and any DEF always goes at 0 so the
// length of the array has to be the number of components + 1.
_uniq_idx_length
=
_components
.
count
()
+
1
;
uniq_idx
=
(
uint
*
)
malloc
(
sizeof
(
uint
)
*
(
_uniq_idx_length
));
for
(
i
=
0
;
i
<
_uniq_idx_length
;
i
++
)
{
uniq_idx
[
i
]
=
i
;
}
}
...
...
@@ -1238,8 +1242,8 @@ void InstructForm::set_unique_opnds() {
_parameters
.
reset
();
while
(
(
name
=
_parameters
.
iter
())
!=
NULL
)
{
count
=
0
;
u
int
position
=
0
;
u
int
uniq_position
=
0
;
int
position
=
0
;
int
uniq_position
=
0
;
_components
.
reset
();
Component
*
comp
=
NULL
;
if
(
sets_result
()
)
{
...
...
@@ -1255,6 +1259,7 @@ void InstructForm::set_unique_opnds() {
}
if
(
strcmp
(
name
,
comp
->
_name
)
==
0
)
{
if
(
++
count
>
1
)
{
assert
(
position
<
_uniq_idx_length
,
"out of bounds"
);
uniq_idx
[
position
]
=
uniq_position
;
has_dupl_use
=
true
;
}
else
{
...
...
src/share/vm/adlc/formssel.hpp
浏览文件 @
0ad217be
...
...
@@ -101,6 +101,7 @@ public:
const
char
*
_ins_pipe
;
// Instruction Scheduline description class
uint
*
_uniq_idx
;
// Indexes of unique operands
int
_uniq_idx_length
;
// Length of _uniq_idx array
uint
_num_uniq
;
// Number of unique operands
ComponentList
_components
;
// List of Components matches MachNode's
// operand structure
...
...
@@ -257,11 +258,13 @@ public:
void
set_unique_opnds
();
uint
num_unique_opnds
()
{
return
_num_uniq
;
}
uint
unique_opnds_idx
(
int
idx
)
{
if
(
_uniq_idx
!=
NULL
&&
idx
>
0
)
if
(
_uniq_idx
!=
NULL
&&
idx
>
0
)
{
assert
(
idx
<
_uniq_idx_length
,
"out of bounds"
);
return
_uniq_idx
[
idx
];
else
}
else
{
return
idx
;
}
}
}
// Operands which are only KILLs aren't part of the input array and
// require special handling in some cases. Their position in this
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录