crash: Assertion failed: (false && "CSEInfo is not consistent. Likely missing calls to " "observer on mutations."), function combineMachineInstrs, file Combiner.cpp
| Run: | main-b577f07195-20261129-101839 |
| 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 b577f07195 |
| 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 0x000055b2e1a319eb llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) + 43
1 llc 0x000055b2e1a2e9c1 llvm::sys::RunSignalHandlers() + 369
2 llc 0x000055b2e1a3246b
3 libc.so.6 0x00007f77a2e45330
4 libc.so.6 0x00007f77a2e9ebec pthread_kill + 284
5 libc.so.6 0x00007f77a2e4527e gsignal + 30
6 libc.so.6 0x00007f77a2e288ff abort + 223
7 libc.so.6 0x00007f77a2e2881b
8 libc.so.6 0x00007f77a2e3b517
9 llc 0x000055b2e22b2805
10 llc 0x000055b2e00d7657
11 llc 0x000055b2e00d7ba6
12 llc 0x000055b2e06ab6b1 llvm::MachineFunctionPass::runOnFunction(llvm::Function&) + 513
13 llc 0x000055b2e0c46b37 llvm::FPPassManager::runOnFunction(llvm::Function&) + 871
14 llc 0x000055b2e0c4f052 llvm::FPPassManager::runOnModule(llvm::Module&) + 50
15 llc 0x000055b2e0c478e0 llvm::legacy::PassManagerImpl::run(llvm::Module&) + 2000
16 llc 0x000055b2dfea2149
17 llc 0x000055b2dfe9f2d3 main + 1747
18 libc.so.6 0x00007f77a2e2a1ca
19 libc.so.6 0x00007f77a2e2a28b __libc_start_main + 139
20 llc 0x000055b2dfe9e3e5 _start + 37
Occurrences (1):
Generated 2026-11-29 14:49 UTC.