[LLVMdev] warning from -instcombine

Chris Lattner clattner at apple.com
Fri Feb 27 11:33:54 PST 2009


On Feb 27, 2009, at 10:50 AM, Devang Patel wrote:

>>> So should it be removed, or downgraded to DOUT, or something?
>>
>> We should not remove them. These indicate a bug in the source,
>> frontend, or earlier optimization passes. It's pretty useful.
>
> Why not use assert() like mechanism to catch such bugs?

The compiler should not crash on invalid or poorly formed code.

-Chris




More information about the llvm-dev mailing list