[llvm-commits] patch: CXAGuardElimination pass.

Eli Friedman eli.friedman at gmail.com
Sun May 24 23:15:29 PDT 2009


On Sun, May 24, 2009 at 9:34 PM, Nick Lewycky <nicholas at mxc.ca> wrote:
> However, it doesn't simplify it down all the way. See llvm.org/PR4261 for an
> example of what happens after this optimization is applied on the above
> program. We may decide that PR4261 is too hard to fix in general and just
> add some extra logic to this pass, but I'd rather have this committed for a
> start.

Couldn't you just change AcquireRet from a constant 1 to a constant 0?
 If it's safe to remove the guard, I don't see how the chosen path
could make a difference.

-Eli



More information about the llvm-commits mailing list