This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Fix PR43077, debug regression with SSA expand


Hi,

On Fri, 19 Feb 2010, Michael Matz wrote:

> When TER decides to forward SSA names also debug instructions need to 
> expand them in place.  The testcase comes from Jakub (thanks) and works 
> with the patch.  If approved I'd commit both, patch and testcase. 
> Regstrapping on x86_64-linux in progress.  Okay for trunk if that works?

Due to some discussion I retract this one for now.  It would do the wrong 
thing for such situation:

a_1 = b_2 + c_3    // assume a_1 is TERed
... use(a_1)       // only real use of a_1
b_3 = ...
#DEBUG something => f(a_1)

When forwarding the RHS "b_2 + c_3" into the debug use we might have 
clobbered b_2 already, namely when b_3 and b_2 can be coalesced.  I'm now 
planning to use debug temps for this situation.


Ciao,
Michael.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]