EntryToken assertion in RemoveNodeFromCSEMaps?

Hi folks,

I have a simple .ll file which has only an intrinsic function. After the ISelLowering phase, an assert was tripped over:

Assertion failed: (N->getOpcode() != ISD::EntryToken && EntryToken in CSEMaps!”). function RemoveNodeFromCSEMaps.

The only thing I can think of is that one of the operands of this intrinsic function is a constant, which is not used anywhere else, and thus may become dead? Any help is appreciated.

Thanks in advance.

  • Chad