Open iamanonymouscs opened 7 months ago
Sorry, the opt command should be:
opt-19 -passes=codegenprepare mutant.bc -o mutant.opt.bc
The clang command should be:
clang-19 -fsanitize=undefined -mllvm -disable-llvm-optzns -c -emit-llvm mutant.c -o mutant.bc
https://github.com/llvm/llvm-project/pull/89566, there has been a discussion about this issue.
-passes='require<profile-summary>,function(codegenprepare)' opt.ll -mtriple=x86_64
It works with the above command, we need profile-summary and triple to make it work.
It seems that we can close this issue?
opt-19 Segmentation fault with the pass "codegenprepare" Compiler explorer: https://godbolt.org/z/T1jTrqbro