crash: Assertion failed: (false && "CSEInfo is not consistent. Likely missing calls to " "observer on mutations."), function combineMachineInstrs, file Combiner.cpp
| Run: | main-d9924131a4-20261128-102057 |
| 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 d9924131a4 |
| 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 0x00005556fb577b5b llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) + 43
1 llc 0x00005556fb574b31 llvm::sys::RunSignalHandlers() + 369
2 llc 0x00005556fb5785db
3 libc.so.6 0x00007fb289245330
4 libc.so.6 0x00007fb28929ebec pthread_kill + 284
5 libc.so.6 0x00007fb28924527e gsignal + 30
6 libc.so.6 0x00007fb2892288ff abort + 223
7 libc.so.6 0x00007fb28922881b
8 libc.so.6 0x00007fb28923b517
9 llc 0x00005556fbdf8775
10 llc 0x00005556f9c1cdf7
11 llc 0x00005556f9c1d346
12 llc 0x00005556fa1f0891 llvm::MachineFunctionPass::runOnFunction(llvm::Function&) + 513
13 llc 0x00005556fa78c7f7 llvm::FPPassManager::runOnFunction(llvm::Function&) + 871
14 llc 0x00005556fa794d12 llvm::FPPassManager::runOnModule(llvm::Module&) + 50
15 llc 0x00005556fa78d5a0 llvm::legacy::PassManagerImpl::run(llvm::Module&) + 2000
16 llc 0x00005556f99e78c9
17 llc 0x00005556f99e4a53 main + 1747
18 libc.so.6 0x00007fb28922a1ca
19 libc.so.6 0x00007fb28922a28b __libc_start_main + 139
20 llc 0x00005556f99e3b65 _start + 37
Occurrences (1):
Generated 2026-11-29 14:49 UTC.