Open Quuxplusone opened 3 years ago
Attached build_llvm.sh
(3575 bytes, text/x-sh): Script to build clang and llvm
Attached build_llvm.sh
(3575 bytes, text/x-sh): Script to build python
Could you try to apply https://reviews.llvm.org/D98183, re-build libLTO (target is LTO) and run ld
as above, but with -mllvm -save-temps as extra options?
This should contain a bunch of ld-temp.* files, which are the intermediary files for LTO. Could you check if opt -O3
crashes for the generated ld-temp.0.3.import.bc ? Or llc
for ld-temp.0.5.precodegen.bc.
If any of those crashes, it would be much easier to reproduce if you could share the bitcode files directly.
(In reply to Florian Hahn from comment #2)
Could you try to apply https://reviews.llvm.org/D98183, re-build libLTO (target is LTO) and run
ld
as above, but with -mllvm -save-temps as extra options?This should contain a bunch of ld-temp.* files, which are the intermediary files for LTO. Could you check if
opt -O3
crashes for the generated ld-temp.0.3.import.bc ? Orllc
for ld-temp.0.5.precodegen.bc.If any of those crashes, it would be much easier to reproduce if you could share the bitcode files directly.
You don't really need to apply the patch, you can also just pass -save-temps
to ld
without the patch and it should generate a lto.bc. It would be great if you could check that against opt -O3
and the `lto.opt.bc` against llc
Hi,
I did not understand "It would be great if you could check that against opt -O3
and the *lto.opt.bc
against llc". Able to apply patch and generate ld-temp.0.3.import.bc file
build_llvm.sh
(3575 bytes, text/x-sh)build_llvm.sh
(3575 bytes, text/x-sh)