性能测例 performance_test2021-public/median2.sysu.c 有问题,O1 优化测试会 segmentation fault #114
Replies: 1 comment
-
|
问题已经解决了,在尾递归调用对应的 call 指令前加 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
本人实现了 mem2reg 的优化 Pass ,但测试 performance_test2021-public/median2.sysu.c 算例时莫名报错 segmentation fault (之前的其他算例都没出错),手动编译 IR 并运行后发现对规模较小(数千以下)的输入可以正常运行,但无法通过测试输入 median2.in.gz
将 median2.in.gz 解压为 median2.in 。使用
clang -emit-llvm生成的 IR 进行测试,发现优化级别为-O0,-O2和-O3时都能通过测例,但-O1会报错 segmentation fault 。在 docker 环境的测试命令如下:
发生错误的原因不明,似乎不进行优化或进行较充分的优化就不会发生错误,但优化不充分就会发生错误,连
clang -O1 -emit-llvm也会出错。希望能找到解决方法。Beta Was this translation helpful? Give feedback.
All reactions