opencilk-project icon indicating copy to clipboard operation
opencilk-project copied to clipboard

Assertion failed: Referenced value not in value map!

Open VoxSciurorum opened this issue 8 months ago • 2 comments

This error is on dev/19.x. Compile the input file (text bitcode) -O1 -fopencilk. compress.txt The compiler crashes with

Assertion failed: ((Flags & RF_IgnoreMissingLocals) && "Referenced value not in value map!"), function remapInstruction, file /data/Cilk/opencilk-project/llvm/lib/Transforms/Utils/ValueMapper.cpp, line 979.

The bad instruction is

  %call55.otd1 = invoke noundef i32 @_Z21BZ2_compressBlockCilkP6EStateR16opencilk_reducerI6writerEPKhS6_(ptr noundef %retval.0.i.otd1, ptr noundef nonnull align 8 dereferenceable(56) %output.otd1, ptr noundef %base.066.otd1, ptr noundef %last.2.otd1)
          to label %invoke.cont54.otd1 unwind label %terminate.lpad.loopexit, !dbg !2514

and the bad value (not in map) is label %terminate.lpad.loopexit.

VoxSciurorum avatar Feb 18 '25 23:02 VoxSciurorum