实现思路:

1.run:入口函数
 以深入优先的顺序记录BB的序号,并记录每个BB中的指令序号到DFSNumber中;
 1.1 hoistExpressions: hoist所有表达式,返回hoist的scalars和non-scalars的数目
   两重循环,遍历每个bb和bb中的每条指令,然后依据指令类型(scalar, load, store, call),将它们插入相应的容器中(VN:{insts});
   2.1 调用computeInsertionPoints:入参中包括上步获取的容器

相关文章:

  • 2021-12-25
  • 2021-11-27
  • 2021-12-22
  • 2021-10-09
  • 2021-04-15
  • 2021-07-18
  • 2021-11-21
  • 2021-12-01
猜你喜欢
  • 2021-04-23
  • 2021-08-07
  • 2021-08-24
  • 2021-06-18
  • 2021-10-29
  • 2022-12-23
  • 2021-12-06
相关资源
相似解决方案