-
Notifications
You must be signed in to change notification settings - Fork 14.9k
Open
Description
Full assertion:
Assertion `(BestFactor.Width == LegacyVF.Width || BestPlan.hasEarlyExit() || planContainsAdditionalSimplifications(getPlanFor(BestFactor.Width), CostCtx, OrigLoop, BestFactor.Width) || planContainsAdditionalSimplifications( getPlanFor(LegacyVF.Width), CostCtx, OrigLoop, LegacyVF.Width)) && " VPlan cost model and legacy cost model disagreed"' failed.
Testcase:
target datalayout = "e-m:e-p:64:64-i64:64-i128:128-n32:64-S128"
target triple = "riscv64-unknown-linux-gnu"
define void @init(i32 %conv2.i) #0 {
entry:
%sext.i = and i32 %conv2.i, 32767
br label %for.cond.i.us
for.cond.i.us: ; preds = %for.body.i.us, %entry
br label %for.body.i.us
for.body.i.us: ; preds = %for.body.i.us, %for.cond.i.us
%v.051.i.us = phi i16 [ %add.i.us, %for.body.i.us ], [ 0, %for.cond.i.us ]
%idxprom5.i.us = sext i16 %v.051.i.us to i64
%arrayidx6.i.us = getelementptr i32, ptr null, i64 %idxprom5.i.us
%0 = load i32, ptr %arrayidx6.i.us, align 4
%conv7.i.us = trunc i32 %0 to i16
%arrayidx11.i.us = getelementptr [1 x [1 x i16]], ptr null, i64 %idxprom5.i.us
store i16 %conv7.i.us, ptr %arrayidx11.i.us, align 2
%conv18.i.us = trunc i32 %0 to i8
%arrayidx22.i.us = getelementptr i8, ptr null, i64 %idxprom5.i.us
store i8 %conv18.i.us, ptr %arrayidx22.i.us, align 1
%arrayidx28.i.us = getelementptr [1 x i64], ptr null, i64 %idxprom5.i.us
store i64 0, ptr %arrayidx28.i.us, align 8
%add.i.us = add i16 %v.051.i.us, 4
%conv.i.us = sext i16 %add.i.us to i32
%cmp.i.us = icmp sgt i32 %sext.i, %conv.i.us
br i1 %cmp.i.us, label %for.body.i.us, label %for.cond.i.us
}
attributes #0 = { "target-features"="+v" }
Original C program before reduction:
# 1 "<built-in>"
# 1 "red.c"
extern short a[][1][1][1];
extern char b[][1];
extern long c[][1][1][1];
void d(long long s[], int t[]) {
for (short u = 0;;)
for (short v = 0; v < (short)s[u]; v += 4) {
a[u][v][u][u] = t[v];
b[u][v] = t[v];
c[u][u][v][u] = 0;
}
}
long long s[1];
int t[1];
void init() { d(s, t); }
Commands/backtrace:
$ /scratch/ewlu/daily-upstream-build/build-gcv/build-llvm-linux/bin/opt --passes="loop-vectorize" reduced.ll
WARNING: You're attempting to print out a bitcode file.
This is inadvisable as it may cause display problems. If
you REALLY want to taste LLVM bitcode first-hand, you
can force output with the `-f' option.
opt: /scratch/ewlu/daily-upstream-build/llvm/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp:7096: llvm::VectorizationFactor llvm::LoopVectorizationPlanner::computeBestVF(): Assertion `(BestFactor.Width == LegacyVF.Width || BestPlan.hasEarlyExit() || planContainsAdditionalSimplifications(getPlanFor(BestFactor.Width), CostCtx, OrigLoop, BestFactor.Width) || planContainsAdditionalSimplifications( getPlanFor(LegacyVF.Width), CostCtx, OrigLoop, LegacyVF.Width)) && " VPlan cost model and legacy cost model disagreed"' failed.
PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace and instructions to reproduce the bug.
Stack dump:
0. Program arguments: /scratch/ewlu/daily-upstream-build/build-gcv/build-llvm-linux/bin/opt --passes=loop-vectorize reduced.ll
1. Running pass "function(loop-vectorize<no-interleave-forced-only;no-vectorize-forced-only;>)" on module "reduced.ll"
2. Running pass "loop-vectorize<no-interleave-forced-only;no-vectorize-forced-only;>" on function "init"
#0 0x0000627db0e2afe0 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) (/scratch/ewlu/daily-upstream-build/build-gcv/build-llvm-linux/bin/opt+0x35f2fe0)
#1 0x0000627db0e27cfa SignalHandler(int, siginfo_t*, void*) Signals.cpp:0:0
#2 0x00007d8278845330 (/lib/x86_64-linux-gnu/libc.so.6+0x45330)
#3 0x00007d827889eb2c __pthread_kill_implementation ./nptl/pthread_kill.c:44:76
#4 0x00007d827889eb2c __pthread_kill_internal ./nptl/pthread_kill.c:78:10
#5 0x00007d827889eb2c pthread_kill ./nptl/pthread_kill.c:89:10
#6 0x00007d827884527e raise ./signal/../sysdeps/posix/raise.c:27:6
#7 0x00007d82788288ff abort ./stdlib/abort.c:81:7
#8 0x00007d827882881b _nl_load_domain ./intl/loadmsgcat.c:1177:9
#9 0x00007d827883b517 (/lib/x86_64-linux-gnu/libc.so.6+0x3b517)
#10 0x0000627dae8dd8a6 llvm::LoopVectorizationPlanner::computeBestVF() (/scratch/ewlu/daily-upstream-build/build-gcv/build-llvm-linux/bin/opt+0x10a58a6)
#11 0x0000627dae8df80c llvm::LoopVectorizePass::processLoop(llvm::Loop*) (/scratch/ewlu/daily-upstream-build/build-gcv/build-llvm-linux/bin/opt+0x10a780c)
#12 0x0000627dae8e2c01 llvm::LoopVectorizePass::runImpl(llvm::Function&) (/scratch/ewlu/daily-upstream-build/build-gcv/build-llvm-linux/bin/opt+0x10aac01)
#13 0x0000627dae8e30aa llvm::LoopVectorizePass::run(llvm::Function&, llvm::AnalysisManager<llvm::Function>&) (/scratch/ewlu/daily-upstream-build/build-gcv/build-llvm-linux/bin/opt+0x10ab0aa)
#14 0x0000627dae101583 llvm::detail::PassModel<llvm::Function, llvm::LoopVectorizePass, llvm::AnalysisManager<llvm::Function>>::run(llvm::Function&, llvm::AnalysisManager<llvm::Function>&) (/scratch/ewlu/daily-upstream-build/build-gcv/build-llvm-linux/bin/opt+0x8c9583)
#15 0x0000627db0bf8b23 llvm::PassManager<llvm::Function, llvm::AnalysisManager<llvm::Function>>::run(llvm::Function&, llvm::AnalysisManager<llvm::Function>&) (/scratch/ewlu/daily-upstream-build/build-gcv/build-llvm-linux/bin/opt+0x33c0b23)
#16 0x0000627dae103db3 llvm::detail::PassModel<llvm::Function, llvm::PassManager<llvm::Function, llvm::AnalysisManager<llvm::Function>>, llvm::AnalysisManager<llvm::Function>>::run(llvm::Function&, llvm::AnalysisManager<llvm::Function>&) (/scratch/ewlu/daily-upstream-build/build-gcv/build-llvm-linux/bin/opt+0x8cbdb3)
#17 0x0000627db0bf75e7 llvm::ModuleToFunctionPassAdaptor::run(llvm::Module&, llvm::AnalysisManager<llvm::Module>&) (/scratch/ewlu/daily-upstream-build/build-gcv/build-llvm-linux/bin/opt+0x33bf5e7)
#18 0x0000627dadd7d5d3 llvm::detail::PassModel<llvm::Module, llvm::ModuleToFunctionPassAdaptor, llvm::AnalysisManager<llvm::Module>>::run(llvm::Module&, llvm::AnalysisManager<llvm::Module>&) (/scratch/ewlu/daily-upstream-build/build-gcv/build-llvm-linux/bin/opt+0x5455d3)
#19 0x0000627db0bf6ee3 llvm::PassManager<llvm::Module, llvm::AnalysisManager<llvm::Module>>::run(llvm::Module&, llvm::AnalysisManager<llvm::Module>&) (/scratch/ewlu/daily-upstream-build/build-gcv/build-llvm-linux/bin/opt+0x33beee3)
#20 0x0000627dadd887f6 llvm::runPassPipeline(llvm::StringRef, llvm::Module&, llvm::TargetMachine*, llvm::TargetLibraryInfoImpl*, llvm::ToolOutputFile*, llvm::ToolOutputFile*, llvm::ToolOutputFile*, llvm::StringRef, llvm::ArrayRef<llvm::PassPlugin>, llvm::ArrayRef<std::function<void (llvm::PassBuilder&)>>, llvm::opt_tool::OutputKind, llvm::opt_tool::VerifierKind, bool, bool, bool, bool, bool, bool, bool, bool) (/scratch/ewlu/daily-upstream-build/build-gcv/build-llvm-linux/bin/opt+0x5507f6)
#21 0x0000627dadd7b77a optMain (/scratch/ewlu/daily-upstream-build/build-gcv/build-llvm-linux/bin/opt+0x54377a)
#22 0x00007d827882a1ca __libc_start_call_main ./csu/../sysdeps/nptl/libc_start_call_main.h:74:3
#23 0x00007d827882a28b call_init ./csu/../csu/libc-start.c:128:20
#24 0x00007d827882a28b __libc_start_main ./csu/../csu/libc-start.c:347:5
#25 0x0000627dadd71b15 _start (/scratch/ewlu/daily-upstream-build/build-gcv/build-llvm-linux/bin/opt+0x539b15)
Aborted
$ /scratch/ewlu/daily-upstream-build/build-gcv/bin/clang -I/scratch/ewlu/ci/compiler-fuzz-ci/csmith-build/include -fsigned-char -fno-strict-aliasing -fwrapv -march=rv64gcv -O3 red.c -o rv64gcv.out -w
clang-22: /scratch/ewlu/daily-upstream-build/llvm/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp:7096: llvm::VectorizationFactor llvm::LoopVectorizationPlanner::computeBestVF(): Assertion `(BestFactor.Width == LegacyVF.Width || BestPlan.hasEarlyExit() || planContainsAdditionalSimplifications(getPlanFor(BestFactor.Width), CostCtx, OrigLoop, BestFactor.Width) || planContainsAdditionalSimplifications( getPlanFor(LegacyVF.Width), CostCtx, OrigLoop, LegacyVF.Width)) && " VPlan cost model and legacy cost model disagreed"' failed.
PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace, preprocessed source, and associated run script.
Stack dump:
0. Program arguments: /scratch/ewlu/daily-upstream-build/build-gcv/bin/clang-22 -cc1 -triple riscv64-unknown-linux-gnu -O3 -emit-obj -dumpdir rv64gcv.out- -disable-free -clear-ast-before-backend -main-file-name red.c -mrelocation-model pic -pic-level 2 -pic-is-pie -mframe-pointer=none -relaxed-aliasing -fmath-errno -ffp-contract=on -fno-rounding-math -mconstructor-aliases -funwind-tables=2 -target-cpu generic-rv64 -target-feature +i -target-feature +m -target-feature +a -target-feature +f -target-feature +d -target-feature +c -target-feature +v -target-feature +zicsr -target-feature +zifencei -target-feature +zmmul -target-feature +zaamo -target-feature +zalrsc -target-feature +zca -target-feature +zcd -target-feature +zve32f -target-feature +zve32x -target-feature +zve64d -target-feature +zve64f -target-feature +zve64x -target-feature +zvl128b -target-feature +zvl32b -target-feature +zvl64b -target-feature -b -target-feature -e -target-feature -h -target-feature -q -target-feature -sdext -target-feature -sdtrig -target-feature -sha -target-feature -shcounterenw -target-feature -shgatpa -target-feature -shlcofideleg -target-feature -shtvala -target-feature -shvsatpa -target-feature -shvstvala -target-feature -shvstvecd -target-feature -smaia -target-feature -smcdeleg -target-feature -smcntrpmf -target-feature -smcsrind -target-feature -smctr -target-feature -smdbltrp -target-feature -smepmp -target-feature -smmpm -target-feature -smnpm -target-feature -smrnmi -target-feature -smstateen -target-feature -ssaia -target-feature -ssccfg -target-feature -ssccptr -target-feature -sscofpmf -target-feature -sscounterenw -target-feature -sscsrind -target-feature -ssctr -target-feature -ssdbltrp -target-feature -ssnpm -target-feature -sspm -target-feature -ssqosid -target-feature -ssstateen -target-feature -ssstrict -target-feature -sstc -target-feature -sstvala -target-feature -sstvecd -target-feature -ssu64xl -target-feature -supm -target-feature -svade -target-feature -svadu -target-feature -svbare -target-feature -svinval -target-feature -svnapot -target-feature -svpbmt -target-feature -svvptc -target-feature -xandesbfhcvt -target-feature -xandesperf -target-feature -xandesvbfhcvt -target-feature -xandesvdot -target-feature -xandesvpackfph -target-feature -xandesvsinth -target-feature -xandesvsintload -target-feature -xcvalu -target-feature -xcvbi -target-feature -xcvbitmanip -target-feature -xcvelw -target-feature -xcvmac -target-feature -xcvmem -target-feature -xcvsimd -target-feature -xmipscbop -target-feature -xmipscmov -target-feature -xmipsexectl -target-feature -xmipslsp -target-feature -xsfcease -target-feature -xsfmm128t -target-feature -xsfmm16t -target-feature -xsfmm32a16f -target-feature -xsfmm32a32f -target-feature -xsfmm32a8f -target-feature -xsfmm32a8i -target-feature -xsfmm32t -target-feature -xsfmm64a64f -target-feature -xsfmm64t -target-feature -xsfmmbase -target-feature -xsfvcp -target-feature -xsfvfnrclipxfqf -target-feature -xsfvfwmaccqqq -target-feature -xsfvqmaccdod -target-feature -xsfvqmaccqoq -target-feature -xsifivecdiscarddlone -target-feature -xsifivecflushdlone -target-feature -xsmtvdot -target-feature -xtheadba -target-feature -xtheadbb -target-feature -xtheadbs -target-feature -xtheadcmo -target-feature -xtheadcondmov -target-feature -xtheadfmemidx -target-feature -xtheadmac -target-feature -xtheadmemidx -target-feature -xtheadmempair -target-feature -xtheadsync -target-feature -xtheadvdot -target-feature -xventanacondops -target-feature -xwchc -target-feature -za128rs -target-feature -za64rs -target-feature -zabha -target-feature -zacas -target-feature -zama16b -target-feature -zawrs -target-feature -zba -target-feature -zbb -target-feature -zbc -target-feature -zbkb -target-feature -zbkc -target-feature -zbkx -target-feature -zbs -target-feature -zcb -target-feature -zce -target-feature -zcf -target-feature -zclsd -target-feature -zcmop -target-feature -zcmp -target-feature -zcmt -target-feature -zdinx -target-feature -zfa -target-feature -zfbfmin -target-feature -zfh -target-feature -zfhmin -target-feature -zfinx -target-feature -zhinx -target-feature -zhinxmin -target-feature -zic64b -target-feature -zicbom -target-feature -zicbop -target-feature -zicboz -target-feature -ziccamoa -target-feature -ziccamoc -target-feature -ziccif -target-feature -zicclsm -target-feature -ziccrse -target-feature -zicntr -target-feature -zicond -target-feature -zihintntl -target-feature -zihintpause -target-feature -zihpm -target-feature -zilsd -target-feature -zimop -target-feature -zk -target-feature -zkn -target-feature -zknd -target-feature -zkne -target-feature -zknh -target-feature -zkr -target-feature -zks -target-feature -zksed -target-feature -zksh -target-feature -zkt -target-feature -ztso -target-feature -zvbb -target-feature -zvbc -target-feature -zvfbfmin -target-feature -zvfbfwma -target-feature -zvfh -target-feature -zvfhmin -target-feature -zvkb -target-feature -zvkg -target-feature -zvkn -target-feature -zvknc -target-feature -zvkned -target-feature -zvkng -target-feature -zvknha -target-feature -zvknhb -target-feature -zvks -target-feature -zvksc -target-feature -zvksed -target-feature -zvksg -target-feature -zvksh -target-feature -zvkt -target-feature -zvl1024b -target-feature -zvl16384b -target-feature -zvl2048b -target-feature -zvl256b -target-feature -zvl32768b -target-feature -zvl4096b -target-feature -zvl512b -target-feature -zvl65536b -target-feature -zvl8192b -target-feature -experimental-p -target-feature -experimental-svukte -target-feature -experimental-xqccmp -target-feature -experimental-xqcia -target-feature -experimental-xqciac -target-feature -experimental-xqcibi -target-feature -experimental-xqcibm -target-feature -experimental-xqcicli -target-feature -experimental-xqcicm -target-feature -experimental-xqcics -target-feature -experimental-xqcicsr -target-feature -experimental-xqciint -target-feature -experimental-xqciio -target-feature -experimental-xqcilb -target-feature -experimental-xqcili -target-feature -experimental-xqcilia -target-feature -experimental-xqcilo -target-feature -experimental-xqcilsm -target-feature -experimental-xqcisim -target-feature -experimental-xqcisls -target-feature -experimental-xqcisync -target-feature -experimental-xrivosvisni -target-feature -experimental-xrivosvizip -target-feature -experimental-xsfmclic -target-feature -experimental-xsfsclic -target-feature -experimental-zalasr -target-feature -experimental-zibi -target-feature -experimental-zicfilp -target-feature -experimental-zicfiss -target-feature -experimental-zvbc32e -target-feature -experimental-zvfbfa -target-feature -experimental-zvfofp8min -target-feature -experimental-zvkgs -target-feature -experimental-zvqdotq -target-feature +relax -target-abi lp64d -debugger-tuning=gdb -fdebug-compilation-dir=/scratch/ewlu/ci/compiler-fuzz-ci/triage-ice/error_6/adlr-2025-10-04-13-3653 -fcoverage-compilation-dir=/scratch/ewlu/ci/compiler-fuzz-ci/triage-ice/error_6/adlr-2025-10-04-13-3653 -resource-dir /scratch/ewlu/daily-upstream-build/build-gcv/lib/clang/22 -I /scratch/ewlu/ci/compiler-fuzz-ci/csmith-build/include -isysroot /scratch/ewlu/daily-upstream-build/build-gcv/bin/../sysroot -internal-isystem /scratch/ewlu/daily-upstream-build/build-gcv/lib/clang/22/include -internal-isystem /scratch/ewlu/daily-upstream-build/build-gcv/bin/../sysroot/usr/local/include -internal-isystem /scratch/ewlu/daily-upstream-build/build-gcv/bin/../sysroot/lib/gcc/riscv64-unknown-linux-gnu/16.0.0/../../../../riscv64-unknown-linux-gnu/include -internal-externc-isystem /scratch/ewlu/daily-upstream-build/build-gcv/bin/../sysroot/include -internal-externc-isystem /scratch/ewlu/daily-upstream-build/build-gcv/bin/../sysroot/usr/include -w -ferror-limit 19 -fmessage-length=209 -fwrapv -fgnuc-version=4.2.1 -fskip-odr-check-in-gmf -fcolor-diagnostics -vectorize-loops -vectorize-slp -faddrsig -D__GCC_HAVE_DWARF2_CFI_ASM=1 -o /tmp/red-a3fdf2.o -x c red.c
1. <eof> parser at end of file
2. Optimizer
3. Running pass "function<eager-inv>(drop-unnecessary-assumes,float2int,lower-constant-intrinsics,chr,loop(loop-rotate<header-duplication;no-prepare-for-lto>,loop-deletion),loop-distribute,inject-tli-mappings,loop-vectorize<no-interleave-forced-only;no-vectorize-forced-only;>,infer-alignment,loop-load-elim,instcombine<max-iterations=1;no-verify-fixpoint>,simplifycfg<bonus-inst-threshold=1;forward-switch-cond;switch-range-to-icmp;switch-to-arithmetic;switch-to-lookup;no-keep-loops;hoist-common-insts;no-hoist-loads-stores-with-cond-faulting;sink-common-insts;speculate-blocks;simplify-cond-branch;no-speculate-unpredictables>,slp-vectorizer,vector-combine,instcombine<max-iterations=1;no-verify-fixpoint>,loop-unroll<O3>,transform-warning,sroa<preserve-cfg>,infer-alignment,instcombine<max-iterations=1;no-verify-fixpoint>,loop-mssa(licm<allowspeculation>),alignment-from-assumptions,loop-sink,instsimplify,div-rem-pairs,tailcallelim,simplifycfg<bonus-inst-threshold=1;no-forward-switch-cond;switch-range-to-icmp;switch-to-arithmetic;no-switch-to-lookup;keep-loops;no-hoist-common-insts;hoist-loads-stores-with-cond-faulting;no-sink-common-insts;speculate-blocks;simplify-cond-branch;speculate-unpredictables>)" on module "red.c"
4. Running pass "loop-vectorize<no-interleave-forced-only;no-vectorize-forced-only;>" on function "init"
#0 0x0000637a012f2580 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) (/scratch/ewlu/daily-upstream-build/build-gcv/bin/clang-22+0x2071580)
#1 0x0000637a012ef29a SignalHandler(int, siginfo_t*, void*) Signals.cpp:0:0
#2 0x0000731871445330 (/lib/x86_64-linux-gnu/libc.so.6+0x45330)
#3 0x000073187149eb2c __pthread_kill_implementation ./nptl/pthread_kill.c:44:76
#4 0x000073187149eb2c __pthread_kill_internal ./nptl/pthread_kill.c:78:10
#5 0x000073187149eb2c pthread_kill ./nptl/pthread_kill.c:89:10
#6 0x000073187144527e raise ./signal/../sysdeps/posix/raise.c:27:6
#7 0x00007318714288ff abort ./stdlib/abort.c:81:7
#8 0x000073187142881b _nl_load_domain ./intl/loadmsgcat.c:1177:9
#9 0x000073187143b517 (/lib/x86_64-linux-gnu/libc.so.6+0x3b517)
#10 0x0000637a02fcda26 llvm::LoopVectorizationPlanner::computeBestVF() (/scratch/ewlu/daily-upstream-build/build-gcv/bin/clang-22+0x3d4ca26)
#11 0x0000637a02fcf98c llvm::LoopVectorizePass::processLoop(llvm::Loop*) (/scratch/ewlu/daily-upstream-build/build-gcv/bin/clang-22+0x3d4e98c)
#12 0x0000637a02fd2d81 llvm::LoopVectorizePass::runImpl(llvm::Function&) (/scratch/ewlu/daily-upstream-build/build-gcv/bin/clang-22+0x3d51d81)
#13 0x0000637a02fd322a llvm::LoopVectorizePass::run(llvm::Function&, llvm::AnalysisManager<llvm::Function>&) (/scratch/ewlu/daily-upstream-build/build-gcv/bin/clang-22+0x3d5222a)
#14 0x0000637a023cef13 llvm::detail::PassModel<llvm::Function, llvm::LoopVectorizePass, llvm::AnalysisManager<llvm::Function>>::run(llvm::Function&, llvm::AnalysisManager<llvm::Function>&) (/scratch/ewlu/daily-upstream-build/build-gcv/bin/clang-22+0x314df13)
#15 0x0000637a00d444e3 llvm::PassManager<llvm::Function, llvm::AnalysisManager<llvm::Function>>::run(llvm::Function&, llvm::AnalysisManager<llvm::Function>&) (/scratch/ewlu/daily-upstream-build/build-gcv/bin/clang-22+0x1ac34e3)
#16 0x0000637a0159af03 llvm::detail::PassModel<llvm::Function, llvm::PassManager<llvm::Function, llvm::AnalysisManager<llvm::Function>>, llvm::AnalysisManager<llvm::Function>>::run(llvm::Function&, llvm::AnalysisManager<llvm::Function>&) (/scratch/ewlu/daily-upstream-build/build-gcv/bin/clang-22+0x2319f03)
#17 0x0000637a00d42fa7 llvm::ModuleToFunctionPassAdaptor::run(llvm::Module&, llvm::AnalysisManager<llvm::Module>&) (/scratch/ewlu/daily-upstream-build/build-gcv/bin/clang-22+0x1ac1fa7)
#18 0x0000637a0159ac83 llvm::detail::PassModel<llvm::Module, llvm::ModuleToFunctionPassAdaptor, llvm::AnalysisManager<llvm::Module>>::run(llvm::Module&, llvm::AnalysisManager<llvm::Module>&) (/scratch/ewlu/daily-upstream-build/build-gcv/bin/clang-22+0x2319c83)
#19 0x0000637a00d428a3 llvm::PassManager<llvm::Module, llvm::AnalysisManager<llvm::Module>>::run(llvm::Module&, llvm::AnalysisManager<llvm::Module>&) (/scratch/ewlu/daily-upstream-build/build-gcv/bin/clang-22+0x1ac18a3)
#20 0x0000637a015abdce (anonymous namespace)::EmitAssemblyHelper::RunOptimizationPipeline(clang::BackendAction, std::unique_ptr<llvm::raw_pwrite_stream, std::default_delete<llvm::raw_pwrite_stream>>&, std::unique_ptr<llvm::ToolOutputFile, std::default_delete<llvm::ToolOutputFile>>&, clang::BackendConsumer*) BackendUtil.cpp:0:0
#21 0x0000637a015af786 (anonymous namespace)::EmitAssemblyHelper::emitAssembly(clang::BackendAction, std::unique_ptr<llvm::raw_pwrite_stream, std::default_delete<llvm::raw_pwrite_stream>>, clang::BackendConsumer*) BackendUtil.cpp:0:0
#22 0x0000637a015b0377 clang::emitBackendOutput(clang::CompilerInstance&, clang::CodeGenOptions&, llvm::StringRef, llvm::Module*, clang::BackendAction, llvm::IntrusiveRefCntPtr<llvm::vfs::FileSystem>, std::unique_ptr<llvm::raw_pwrite_stream, std::default_delete<llvm::raw_pwrite_stream>>, clang::BackendConsumer*) (/scratch/ewlu/daily-upstream-build/build-gcv/bin/clang-22+0x232f377)
#23 0x0000637a01c51a3f clang::BackendConsumer::HandleTranslationUnit(clang::ASTContext&) (/scratch/ewlu/daily-upstream-build/build-gcv/bin/clang-22+0x29d0a3f)
#24 0x0000637a039afa0c clang::ParseAST(clang::Sema&, bool, bool) (/scratch/ewlu/daily-upstream-build/build-gcv/bin/clang-22+0x472ea0c)
#25 0x0000637a01f9fb35 clang::FrontendAction::Execute() (/scratch/ewlu/daily-upstream-build/build-gcv/bin/clang-22+0x2d1eb35)
#26 0x0000637a01f22fee clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) (/scratch/ewlu/daily-upstream-build/build-gcv/bin/clang-22+0x2ca1fee)
#27 0x0000637a0209be9e clang::ExecuteCompilerInvocation(clang::CompilerInstance*) (/scratch/ewlu/daily-upstream-build/build-gcv/bin/clang-22+0x2e1ae9e)
#28 0x00006379ffedfb90 cc1_main(llvm::ArrayRef<char const*>, char const*, void*) (/scratch/ewlu/daily-upstream-build/build-gcv/bin/clang-22+0xc5eb90)
#29 0x00006379ffed5880 ExecuteCC1Tool(llvm::SmallVectorImpl<char const*>&, llvm::ToolContext const&, llvm::IntrusiveRefCntPtr<llvm::vfs::FileSystem>) driver.cpp:0:0
#30 0x00006379ffed9856 clang_main(int, char**, llvm::ToolContext const&) (/scratch/ewlu/daily-upstream-build/build-gcv/bin/clang-22+0xc58856)
#31 0x00006379ffdd1628 main (/scratch/ewlu/daily-upstream-build/build-gcv/bin/clang-22+0xb50628)
#32 0x000073187142a1ca __libc_start_call_main ./csu/../sysdeps/nptl/libc_start_call_main.h:74:3
#33 0x000073187142a28b call_init ./csu/../csu/libc-start.c:128:20
#34 0x000073187142a28b __libc_start_main ./csu/../csu/libc-start.c:347:5
#35 0x00006379ffed4e85 _start (/scratch/ewlu/daily-upstream-build/build-gcv/bin/clang-22+0xc53e85)
clang: error: unable to execute command: Aborted
clang: error: clang frontend command failed due to signal (use -v to see invocation)
clang version 22.0.0git (https://github.com/llvm/llvm-project.git 7f8d9b0bf9dd46279f4481583e5c128c1fa57d7e)
Target: riscv64-unknown-linux-gnu
Thread model: posix
InstalledDir: /scratch/ewlu/daily-upstream-build/build-gcv/bin
Build config: +assertions
clang: note: diagnostic msg:
********************
PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang: note: diagnostic msg: /tmp/red-b2ae93.c
clang: note: diagnostic msg: /tmp/red-b2ae93.sh
clang: note: diagnostic msg:
********************
Godbolt: https://godbolt.org/z/zP71E49TP
Found via fuzzer