crash: Assertion failed: (false && "CSEInfo is not consistent. Likely missing calls to " "observer on mutations."), function combineMachineInstrs, file Combiner.cpp
| Run: | main-db12fc36f6-20261127-110859 |
| Kind: | crash |
| Category: | Assertion failed: (false && "CSEInfo is not consistent. Likely missing calls to " "observer on mutations."), function combineMachineInstrs, file Combiner.cpp |
| Occurrences: | 1 in 1 configs, 1 test files |
| Snippet from: | float-bit-preserving-dagcombines.ll @bitcast_double_and via llvm-extract |
| Config: | -mtriple=riscv32 -mattr=+f,+d -target-abi=ilp32 -verify-machineinstrs |
| Local check: | reproduces at db12fc36f6 |
| Compiler Explorer: | https://godbolt.org/z/W6oYKdEjc (llc-assertions-trunk, checked 2026-11-18 11:17 UTC): G no crash on trunk |
Snippet:
; Function Attrs: nounwind
define double @bitcast_double_and(double %a1, double %a2) #0 {
%a3 = fadd double %a1, %a2
%bc1 = bitcast double %a3 to i64
%and = and i64 %bc1, 9223372036854775807
%bc2 = bitcast i64 %and to double
%a4 = fadd double %a1, %bc2
ret double %a4
}
attributes #0 = { nounwind }
Compiler Explorer panes:
| Pane | Options | Exit | Insts | stderr |
|---|
| GlobalISel | -mtriple=riscv32 -mattr=+f,+d -target-abi=ilp32 -verify-machineinstrs -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* | 0 | 22 | - |
| SelectionDAG (control) | -mtriple=riscv32 -mattr=+f,+d -target-abi=ilp32 -verify-machineinstrs -global-isel=0 | 0 | 15 | - |
Reproduce:
llc -mtriple=riscv32 -mattr=+f,+d -target-abi=ilp32 -verify-machineinstrs -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv32 -mattr=+f,+d -target-abi=ilp32 -verify-machineinstrs -global-isel=0 snippet.ll -o -
Local llc output:
CSEMap mismatch, InstrMapping has MIs without corresponding Nodes in CSEMap:
%22:_(i32), %23:_(s32) = G_UNMERGE_VALUES %6:_(f64)
llc: /home/runner/work/llvm-fuzz/llvm-fuzz/llvm-project/llvm/lib/CodeGen/GlobalISel/Combiner.cpp:347: bool llvm::Combiner::combineMachineInstrs(): Assertion `false && "CSEInfo is not consistent. Likely missing calls to " "observer on mutations."' 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: /home/runner/work/llvm-fuzz/llvm-fuzz/llvm-project/build/bin/llc -mtriple=riscv32 -mattr=+f,+d -target-abi=ilp32 -verify-machineinstrs -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* -o -
1. Running pass 'Function Pass Manager' on module '<stdin>'.
2. Running pass 'RISCVPostLegalizerCombiner' on function '@bitcast_double_and'
Stack dump without symbol names (ensure you have llvm-symbolizer in your PATH or set the environment var `LLVM_SYMBOLIZER_PATH` to point to it):
0 llc 0x0000555a488e1c1b llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) + 43
1 llc 0x0000555a488debf1 llvm::sys::RunSignalHandlers() + 369
2 llc 0x0000555a488e269b
3 libc.so.6 0x00007f259b045330
4 libc.so.6 0x00007f259b09ebec pthread_kill + 284
5 libc.so.6 0x00007f259b04527e gsignal + 30
6 libc.so.6 0x00007f259b0288ff abort + 223
7 libc.so.6 0x00007f259b02881b
8 libc.so.6 0x00007f259b03b517
9 llc 0x0000555a49162d65
10 llc 0x0000555a46f86b87
11 llc 0x0000555a46f870d6
12 llc 0x0000555a4755a761 llvm::MachineFunctionPass::runOnFunction(llvm::Function&) + 513
13 llc 0x0000555a47af6a77 llvm::FPPassManager::runOnFunction(llvm::Function&) + 871
14 llc 0x0000555a47afef92 llvm::FPPassManager::runOnModule(llvm::Module&) + 50
15 llc 0x0000555a47af7820 llvm::legacy::PassManagerImpl::run(llvm::Module&) + 2000
16 llc 0x0000555a46d51689
17 llc 0x0000555a46d4e813 main + 1747
18 libc.so.6 0x00007f259b02a1ca
19 libc.so.6 0x00007f259b02a28b __libc_start_main + 139
20 llc 0x0000555a46d4d925 _start + 37
Occurrences (1):
Generated 2026-11-29 14:49 UTC.