OpenCilk / opencilk-project

Monorepo for the OpenCilk compiler. Forked from llvm/llvm-project and based on Tapir/LLVM.
Other
93 stars 29 forks source link

Oddly placed spawn crashes compiler #126

Open VoxSciurorum opened 2 years ago

VoxSciurorum commented 2 years ago

Compiling this function with OpenCilk 2.0 clang -fopencilk

extern int g(int), h();

void f()
{
  int x = g(_Cilk_spawn h());
}

causes a crash

Instruction does not dominate all uses!
  %call1 = call i32 @g(i32 noundef %call)
  store i32 %call1, i32* %x, align 4
in function f