crash: Assertion failed: (false && "CSEInfo is not consistent. Likely missing calls to " "observer on mutations."), function combineMachineInstrs, file Combiner.cpp

Run:explore-b577f07195-20261129-105236
Kind:crash
Category:Assertion failed: (false && "CSEInfo is not consistent. Likely missing calls to " "observer on mutations."), function combineMachineInstrs, file Combiner.cpp
Occurrences:3 in 3 configs, 1 test files, 24 more counted only
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:

PaneOptionsExitInstsstderr
GlobalISel-mtriple=riscv32 -mattr=+f,+d -target-abi=ilp32 -verify-machineinstrs -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.*022-
SelectionDAG (control)-mtriple=riscv32 -mattr=+f,+d -target-abi=ilp32 -verify-machineinstrs -global-isel=0015-

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       0x000056461d52f9eb llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) + 43
1  llc       0x000056461d52c9c1 llvm::sys::RunSignalHandlers() + 369
2  llc       0x000056461d53046b
3  libc.so.6 0x00007f8641c45330
4  libc.so.6 0x00007f8641c9ebec pthread_kill + 284
5  libc.so.6 0x00007f8641c4527e gsignal + 30
6  libc.so.6 0x00007f8641c288ff abort + 223
7  libc.so.6 0x00007f8641c2881b
8  libc.so.6 0x00007f8641c3b517
9  llc       0x000056461ddb0805
10 llc       0x000056461bbd5657
11 llc       0x000056461bbd5ba6
12 llc       0x000056461c1a96b1 llvm::MachineFunctionPass::runOnFunction(llvm::Function&) + 513
13 llc       0x000056461c744b37 llvm::FPPassManager::runOnFunction(llvm::Function&) + 871
14 llc       0x000056461c74d052 llvm::FPPassManager::runOnModule(llvm::Module&) + 50
15 llc       0x000056461c7458e0 llvm::legacy::PassManagerImpl::run(llvm::Module&) + 2000
16 llc       0x000056461b9a0149
17 llc       0x000056461b99d2d3 main + 1747
18 libc.so.6 0x00007f8641c2a1ca
19 libc.so.6 0x00007f8641c2a28b __libc_start_main + 139
20 llc       0x000056461b99c3e5 _start + 37

Occurrences (3):

InputFunctionConfig
float-bit-preserving-dagcombines.ll-mtriple=riscv32 -mattr=+f,+d -target-abi=ilp32 -verify-machineinstrs
float-bit-preserving-dagcombines.4b3828e497.ll (mutant of float-bit-preserving-dagcombines.ll)-mtriple=riscv32 -target-abi=ilp32 -verify-machineinstrs -mattr=+f,+d,+zbs,+zvbb -O3 -code-model=small
float-bit-preserving-dagcombines.86ae5b8570.ll (mutant of float-bit-preserving-dagcombines.ll)-mtriple=riscv32 -target-abi=ilp32 -verify-machineinstrs -mattr=+f,+d -O2

Generated 2026-11-29 14:49 UTC.