getMinimalPhysRegClass : Couldn't find the register class

I’ve implemented a function pass, and some associated hacks to llvm and clang, and am hitting an error in a DAG pass when my transformed IR is processed. That transformed bytecode attempts to insert a call around a load of a ‘long double’. The error is:

  1. Running pass ‘Function Pass Manager’ on module ‘big.c’.

  2. Running pass ‘X86 DAG->DAG Instruction Selection’ on function ‘@ld

Could you post the output from -debug-only=isel?

The transformed IR works for me.