1.4K Star 7.6K Fork 1.4K

GVP方舟编译器 / OpenArkCompiler

 / 详情

Alias analysis bug in comiling 625.x264_s causing incorrect output

待办的
成员
创建于  
2021-08-30 04:09

The bug is in compiling encoder/analyse.c:x264_mb_analyse_inter_b16x16().

The alias analysis bug caused dse phase to delete these 2 iassigns at source line 1659:

  int i_halfpel_thresh[2] = {INT_MAX, INT_MAX};

The bug is due recent addition to take offsets into account, resulting in the same symbol belonging to more than 1 alias classes. See id15 below:

Members of alias class 15: %p_halfpel_thresh<0>id15 %p_halfpel_thresh{offset:0}<0>id17 %p_halfpel_thresh{offset:64}<0>id18 %p_halfpel_thresh<0>id33
Alone: %p_halfpel_thresh<-1>id16
Members of alias class 17: %p_halfpel_thresh<0>id15 %p_halfpel_thresh{offset:0}<0>id17 %p_halfpel_thresh<0>id33
Members of alias class 18: %p_halfpel_thresh<0>id15 %p_halfpel_thresh{offset:64}<0>id18 %p_halfpel_thresh<0>id33

This confusion causes the alias between i_halfpel_thresh and p_halfpel_thresh to be missed.

评论 (0)

fredchow 创建了任务
展开全部操作日志

登录 后才可以发表评论

状态
负责人
里程碑
Pull Requests
关联的 Pull Requests 被合并后可能会关闭此 issue
分支
开始日期   -   截止日期
-
置顶选项
优先级
参与者(1)
C++
1
https://gitee.com/openarkcompiler/OpenArkCompiler.git
git@gitee.com:openarkcompiler/OpenArkCompiler.git
openarkcompiler
OpenArkCompiler
OpenArkCompiler

搜索帮助