[PATCH] Allocate stack storage for .block_descriptor and captured self.
John McCall
rjmccall at apple.com
Tue Feb 26 09:11:33 PST 2013
On Feb 26, 2013, at 5:18 AM, Rafael EspĂndola <rafael.espindola at gmail.com> wrote:
>> As far as I'm concerned, it's only really a problem if it's unintentional.
>> :)
>
> Having -g change the generated output is a bad user experience. If "-g
> -O2" produces worse code than just -O2 we will be pushing people to
> use -O2 on release builds which then makes them harder to debug.
That's not a concern; mem2reg would definitely kill this alloca.
John.
More information about the cfe-commits
mailing list