GithubHelp home page GithubHelp logo

Comments (3)

liowmark avatar liowmark commented on July 21, 2024

我分析了流程好像就直接dvm字节码按照直接翻译成IR,然后就直接用相同名字(根据寄存器编号跟参数类型)消去Phi,没有TSSA转CSSA的步骤,是不是dvm的字节码直接翻译过来的实际上已经符合(CSSA)。

from dcc.

amimo avatar amimo commented on July 21, 2024

是没有TSSA到CSSA的过程。 对于归约CFG,转出来的就是CSSA;对于不可归约的CFG,按我的理解,只要PHI相关资源活跃不冲突,同样可以给他们分配相同的名字来消除PHI。
刚转出来,没有经过任何优化的PHI相关资源,我理解也是不会冲突的,如:
r0_2 = phi(r0_0, r0_1)
r0_0, r0_1, v0_2 都来源于同一个寄存器r0。既然他们能分配到同一个寄存器r0,那么他们肯定不会冲突。

对变量进行命名确实是使用寄存器编号和类型。
另外,compiler.py还有个叫verify_phi_operand_type函数,它是用来确保phi相关变量会分配到相同的名称,保证PHI消除是正确的。

from dcc.

liowmark avatar liowmark commented on July 21, 2024

thks

from dcc.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.