No pattern found for opcode Fadd: Xxr
还没有人认领这个 Issue。
评估
调研方向
使用提供的 Docker 命令和 autogen_bug.py 示例重现该故障。从 /cinder/src/Jit/codegen/autogen.cpp:143 中的 assertion 开始,跟踪报告的“No pattern found for opcode Fadd: Xxr”情况,并比较有无 @inline 时的行为。当 inline 版本不再因该 assertion 而 abort 时,即表示完成。
由索引模型根据 Issue 内容生成。
描述
$ docker run -v $PWD:/vol -it --rm ghcr.io/facebookincubator/cinder-runtime:cinder-3.8 -X jit -m compiler --static vol/autogen_bug.py
JIT: /cinder/src/Jit/codegen/autogen.cpp:143 -- assertion failed: func != nullptr
No pattern found for opcode Fadd: Xxr
from __static__ import box, double, inline
@inline
def foo(a: double, b: double) -> double:
return b - a
def main():
c: double = 0.
for _ in range(10):
c += foo(.4, .97)
print('done', box(c))
if __name__ == '__main__':
main()
The problem goes away if @inline is removed.
See in seen in cinder-3.8.6c2de94
- 主要语言
- Python
- 星标
- 3.8k
- 派生
- 139
- PR 合并指标
- 30 天内没有已合并 PR
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
facebookincubator/MetaPython 的其他 Issue
-
难度 4/5 3-5 天 新手友好度 35/100
facebookincubator/MetaPython#147 ·
-
难度 4/5 3-5 天 新手友好度 45/100
facebookincubator/MetaPython#146 · 2 条评论 ·
-
难度 4/5 3-5 天 新手友好度 35/100
facebookincubator/MetaPython#145 · 4 条评论 ·
-
难度 3/5 1-2 天 新手友好度 30/100
facebookincubator/MetaPython#144 · 1 条评论 ·
-
难度 4/5 3-5 天 新手友好度 20/100
facebookincubator/MetaPython#129 · 2 条评论 ·
查看 facebookincubator/MetaPython 的全部 Issue
相似的 Issue
-
bug
难度 2/5 1-3 小时 新手友好度 75/100
stephrobert/dsoxlab#238 ·
-
难度 2/5 1-3 小时 新手友好度 75/100
-
难度 2/5 1-3 小时 新手友好度 75/100
sublimehq/package_control#1780 ·
-
难度 2/5 1-3 小时 新手友好度 65/100
-
难度 2/5 1-3 小时 新手友好度 70/100
nwg-piotr/nwg-displays#145 ·