[llvm-commits] [llvm] r75567 - /llvm/trunk/lib/VMCore/Instruction.cpp

Eli Friedman eli.friedman at gmail.com
Wed Jul 15 04:32:53 PDT 2009


On Wed, Jul 15, 2009 at 2:20 AM, Owen Anderson<resistor at mac.com> wrote:
> It's probably undefined what happens when you free an invalid pointer, so we
> can choose to do whatever we want with it, but I see no particular reason to
> require preserving trapping behavior for it.

I believe isTrapping() is supposed to return true for roughly the set
of instruction which cannot be safely LICM'ed without leading to
undefined behavior.  It isn't really too well-defined; I wouldn't be
opposed to getting rid of it, and making the callers figure out what
exactly they want themselves.

-Eli



More information about the llvm-commits mailing list